< prev index next >

src/java.desktop/share/native/libfontmanager/harfbuzz/hb-buffer-deserialize-text.hh

Print this page




 308 static const int deserialize_text_start = 1;
 309 static const int deserialize_text_first_final = 13;
 310 static const int deserialize_text_error = 0;
 311 
 312 static const int deserialize_text_en_main = 1;
 313 
 314 
 315 #line 91 "hb-buffer-deserialize-text.rl"
 316 
 317 
 318 static hb_bool_t
 319 _hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
 320                                     const char *buf,
 321                                     unsigned int buf_len,
 322                                     const char **end_ptr,
 323                                     hb_font_t *font)
 324 {
 325   const char *p = buf, *pe = buf + buf_len;
 326 
 327   /* Ensure we have positions. */
 328   (void) hb_buffer_get_glyph_positions (buffer, NULL);
 329 
 330   while (p < pe && ISSPACE (*p))
 331     p++;
 332   if (p < pe && *p == (buffer->len ? '|' : '['))
 333   {
 334     *end_ptr = ++p;
 335   }
 336 
 337   const char *eof = pe, *tok = NULL;
 338   int cs;
 339   hb_glyph_info_t info = {0};
 340   hb_glyph_position_t pos = {0};
 341   
 342 #line 343 "hb-buffer-deserialize-text.hh"
 343         {
 344         cs = deserialize_text_start;
 345         }
 346 
 347 #line 348 "hb-buffer-deserialize-text.hh"
 348         {
 349         int _slen;
 350         int _trans;
 351         const unsigned char *_keys;
 352         const char *_inds;
 353         if ( p == pe )
 354                 goto _test_eof;
 355         if ( cs == 0 )
 356                 goto _out;
 357 _resume:




 308 static const int deserialize_text_start = 1;
 309 static const int deserialize_text_first_final = 13;
 310 static const int deserialize_text_error = 0;
 311 
 312 static const int deserialize_text_en_main = 1;
 313 
 314 
 315 #line 91 "hb-buffer-deserialize-text.rl"
 316 
 317 
 318 static hb_bool_t
 319 _hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
 320                                     const char *buf,
 321                                     unsigned int buf_len,
 322                                     const char **end_ptr,
 323                                     hb_font_t *font)
 324 {
 325   const char *p = buf, *pe = buf + buf_len;
 326 
 327   /* Ensure we have positions. */
 328   (void) hb_buffer_get_glyph_positions (buffer, nullptr);
 329 
 330   while (p < pe && ISSPACE (*p))
 331     p++;
 332   if (p < pe && *p == (buffer->len ? '|' : '['))
 333   {
 334     *end_ptr = ++p;
 335   }
 336 
 337   const char *eof = pe, *tok = nullptr;
 338   int cs;
 339   hb_glyph_info_t info = {0};
 340   hb_glyph_position_t pos = {0};
 341 
 342 #line 343 "hb-buffer-deserialize-text.hh"
 343         {
 344         cs = deserialize_text_start;
 345         }
 346 
 347 #line 348 "hb-buffer-deserialize-text.hh"
 348         {
 349         int _slen;
 350         int _trans;
 351         const unsigned char *_keys;
 352         const char *_inds;
 353         if ( p == pe )
 354                 goto _test_eof;
 355         if ( cs == 0 )
 356                 goto _out;
 357 _resume:


< prev index next >