Home
last modified time | relevance | path

Searched refs:string_size (Results 1 – 25 of 50) sorted by relevance

12

/third_party/jerryscript/jerry-core/lit/
Dlit-magic-strings.c171 lit_utf8_size_t string_size = JERRY_CONTEXT (lit_magic_string_ex_sizes)[id]; in lit_magic_strings_ex_set() local
182 string_size)); in lit_magic_strings_ex_set()
183 JERRY_ASSERT (prev_string_size <= string_size); in lit_magic_strings_ex_set()
185 if (prev_string_size == string_size) in lit_magic_strings_ex_set()
189 JERRY_ASSERT (memcmp (prev_ex_string_p, curr_ex_string_p, string_size) < 0); in lit_magic_strings_ex_set()
204 lit_utf8_size_t string_size) /**< string size in bytes */ in lit_is_utf8_string_magic() argument
206 if (string_size > lit_get_magic_string_size (LIT_NON_INTERNAL_MAGIC_STRING__COUNT - 1)) in lit_is_utf8_string_magic()
212 lit_utf8_size_t first = lit_get_magic_string_size_block_start (string_size); in lit_is_utf8_string_magic()
213 lit_utf8_size_t last = lit_get_magic_string_size_block_start (string_size + 1); in lit_is_utf8_string_magic()
218 …mpare = memcmp (lit_get_magic_string_utf8 ((lit_magic_string_id_t) middle), string_p, string_size); in lit_is_utf8_string_magic()
[all …]
Dlit-magic-strings.h95 …tring_id_t lit_is_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
99 …ex_id_t lit_is_ex_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
/third_party/python/Modules/_io/
Dbytesio.c16 Py_ssize_t string_size; member
80 if (self->pos >= self->string_size) in scan_eol()
84 maxlen = self->string_size - self->pos; in scan_eol()
111 assert(size >= (size_t)self->string_size); in unshare_buffer()
116 self->string_size); in unshare_buffer()
207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
213 if (self->pos > self->string_size) { in write_bytes()
222 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes()
223 (self->pos - self->string_size) * sizeof(char)); in write_bytes()
232 if ((size_t)self->string_size < endpos) { in write_bytes()
[all …]
Dstringio.c25 Py_ssize_t string_size; member
220 if (self->string_size == self->pos) { in write_str()
229 if (self->pos + len > self->string_size) { in write_str()
234 if (self->pos > self->string_size) { in write_str()
244 memset(self->buf + self->string_size, '\0', in write_str()
245 (self->pos - self->string_size) * sizeof(Py_UCS4)); in write_str()
259 if (self->string_size < self->pos) in write_str()
260 self->string_size = self->pos; in write_str()
285 self->string_size); in _io_StringIO_getvalue_impl()
325 n = self->string_size - self->pos; in _io_StringIO_read_impl()
[all …]
/third_party/mesa3d/src/virtio/venus-protocol/
Dvn_protocol_driver_instance.h35 const size_t string_size = strlen(val->pApplicationName) + 1; in vn_sizeof_VkApplicationInfo_self() local
36 size += vn_sizeof_array_size(string_size); in vn_sizeof_VkApplicationInfo_self()
37 size += vn_sizeof_char_array(val->pApplicationName, string_size); in vn_sizeof_VkApplicationInfo_self()
43 const size_t string_size = strlen(val->pEngineName) + 1; in vn_sizeof_VkApplicationInfo_self() local
44 size += vn_sizeof_array_size(string_size); in vn_sizeof_VkApplicationInfo_self()
45 size += vn_sizeof_char_array(val->pEngineName, string_size); in vn_sizeof_VkApplicationInfo_self()
78 const size_t string_size = strlen(val->pApplicationName) + 1; in vn_encode_VkApplicationInfo_self() local
79 vn_encode_array_size(enc, string_size); in vn_encode_VkApplicationInfo_self()
80 vn_encode_char_array(enc, val->pApplicationName, string_size); in vn_encode_VkApplicationInfo_self()
86 const size_t string_size = strlen(val->pEngineName) + 1; in vn_encode_VkApplicationInfo_self() local
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c65 lit_utf8_size_t string_size, /**< string size */ in ecma_string_to_array_index() argument
68 JERRY_ASSERT (string_size > 0 && *string_p >= LIT_CHAR_0 && *string_p <= LIT_CHAR_9); in ecma_string_to_array_index()
73 return (string_size == 1); in ecma_string_to_array_index()
76 if (string_size > ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
82 const lit_utf8_byte_t *string_end_p = string_p + string_size; in ecma_string_to_array_index()
84 if (string_size == ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
100 if (string_size < ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
298 lit_utf8_size_t string_size) /**< string size */ in ecma_find_special_string() argument
300 JERRY_ASSERT (string_p != NULL || string_size == 0); in ecma_find_special_string()
301 lit_magic_string_id_t magic_string_id = lit_is_utf8_string_magic (string_p, string_size); in ecma_find_special_string()
[all …]
/third_party/gstreamer/gstplugins_good/gst/goom/
Dgoomsl_lex.l13 static int string_size; variable
43 <INITIAL>\" { BEGIN STRING; string_size=0; }
45 <STRING>"\\n" { string[string_size++] = '\n'; }
46 <STRING>"\\\"" { string[string_size++] = '\"'; }
50 string[string_size]=0;
51 tmp = gsl_malloc(currentGoomSL, string_size+1);
56 <STRING>. { string[string_size++] = *yytext; }
/third_party/jerryscript/jerry-core/jmem/
Djmem-allocator.c61 jmem_stats_allocate_string_bytes (size_t string_size) in jmem_stats_allocate_string_bytes() argument
65 heap_stats->string_bytes += string_size; in jmem_stats_allocate_string_bytes()
77 jmem_stats_free_string_bytes (size_t string_size) in jmem_stats_free_string_bytes() argument
81 JERRY_ASSERT (heap_stats->string_bytes >= string_size); in jmem_stats_free_string_bytes()
83 heap_stats->string_bytes -= string_size; in jmem_stats_free_string_bytes()
Djmem.h179 void jmem_stats_allocate_string_bytes (size_t string_size);
180 void jmem_stats_free_string_bytes (size_t string_size);
182 void jmem_stats_free_object_bytes (size_t string_size);
/third_party/skia/third_party/externals/freetype/src/type42/
Dt42parse.c543 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local
575 string_size = 0; in t42_parse_sfnts()
610 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts()
611 if ( !string_size ) in t42_parse_sfnts()
617 if ( FT_QREALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts()
623 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts()
624 old_string_size = string_size; in t42_parse_sfnts()
625 string_size = real_size; in t42_parse_sfnts()
649 string_size = (FT_ULong)tmp; in t42_parse_sfnts()
657 if ( (FT_ULong)( limit - parser->root.cursor ) <= string_size ) in t42_parse_sfnts()
[all …]
/third_party/freetype/src/type42/
Dt42parse.c543 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local
575 string_size = 0; in t42_parse_sfnts()
607 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts()
608 if ( !string_size ) in t42_parse_sfnts()
614 if ( FT_REALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts()
620 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts()
621 old_string_size = string_size; in t42_parse_sfnts()
622 string_size = real_size; in t42_parse_sfnts()
646 string_size = (FT_ULong)tmp; in t42_parse_sfnts()
654 if ( (FT_ULong)( limit - parser->root.cursor ) <= string_size ) in t42_parse_sfnts()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/type42/
Dt42parse.c543 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local
575 string_size = 0; in t42_parse_sfnts()
607 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts()
608 if ( !string_size ) in t42_parse_sfnts()
614 if ( FT_REALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts()
620 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts()
621 old_string_size = string_size; in t42_parse_sfnts()
622 string_size = real_size; in t42_parse_sfnts()
646 string_size = (FT_ULong)tmp; in t42_parse_sfnts()
654 if ( (FT_ULong)( limit - parser->root.cursor ) <= string_size ) in t42_parse_sfnts()
[all …]
/third_party/cef/tests/cefclient/browser/
Dosr_ime_handler_win.cc309 LONG string_size = ::ImmGetCompositionString(imc, type, nullptr, 0); in GetString() local
310 if (string_size <= 0) in GetString()
314 string_size += sizeof(WCHAR); in GetString()
316 std::vector<wchar_t> buffer(string_size); in GetString()
317 ::ImmGetCompositionString(imc, type, &buffer[0], string_size); in GetString()
/third_party/skia/third_party/externals/freetype/src/pcf/
Dpcfread.c488 FT_ULong string_size; in pcf_get_properties() local
585 (void)FT_READ_ULONG( string_size ); in pcf_get_properties()
587 (void)FT_READ_ULONG_LE( string_size ); in pcf_get_properties()
591 FT_TRACE4(( " string size: %ld\n", string_size )); in pcf_get_properties()
594 if ( string_size > size - orig_nprops * PCF_PROPERTY_SIZE ) in pcf_get_properties()
602 if ( string_size > 16777472 ) /* 256 * (65536 + 1) */ in pcf_get_properties()
606 string_size = 16777472; in pcf_get_properties()
610 if ( FT_QALLOC( strings, string_size + 1 ) || in pcf_get_properties()
611 FT_STREAM_READ( strings, string_size ) ) in pcf_get_properties()
614 strings[string_size] = '\0'; in pcf_get_properties()
[all …]
/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DFontCollection.cpp466 size_t string_size, in itemize() argument
474 if (string_size == 0) { in itemize()
484 U16_NEXT(string, readLength, string_size, nextCh); in itemize()
490 if (readLength < string_size) { in itemize()
491 U16_NEXT(string, readLength, string_size, nextCh); in itemize()
/third_party/freetype/src/pcf/
Dpcfread.c488 FT_ULong string_size; in pcf_get_properties() local
585 (void)FT_READ_ULONG( string_size ); in pcf_get_properties()
587 (void)FT_READ_ULONG_LE( string_size ); in pcf_get_properties()
591 FT_TRACE4(( " string size: %ld\n", string_size )); in pcf_get_properties()
594 if ( string_size > size - orig_nprops * PCF_PROPERTY_SIZE ) in pcf_get_properties()
602 if ( string_size > 16777472 ) /* 256 * (65536 + 1) */ in pcf_get_properties()
606 string_size = 16777472; in pcf_get_properties()
610 if ( FT_NEW_ARRAY( strings, string_size + 1 ) ) in pcf_get_properties()
613 error = FT_Stream_Read( stream, (FT_Byte*)strings, string_size ); in pcf_get_properties()
629 ( (FT_ULong)name_offset > string_size ) ) in pcf_get_properties()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/pcf/
Dpcfread.c489 FT_ULong string_size; in pcf_get_properties() local
586 (void)FT_READ_ULONG( string_size ); in pcf_get_properties()
588 (void)FT_READ_ULONG_LE( string_size ); in pcf_get_properties()
592 FT_TRACE4(( " string size: %ld\n", string_size )); in pcf_get_properties()
595 if ( string_size > size - orig_nprops * PCF_PROPERTY_SIZE ) in pcf_get_properties()
603 if ( string_size > 16777472 ) /* 256 * (65536 + 1) */ in pcf_get_properties()
607 string_size = 16777472; in pcf_get_properties()
611 if ( FT_NEW_ARRAY( strings, string_size + 1 ) ) in pcf_get_properties()
614 error = FT_Stream_Read( stream, (FT_Byte*)strings, string_size ); in pcf_get_properties()
630 ( (FT_ULong)name_offset > string_size ) ) in pcf_get_properties()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-string-prototype.c457 &(replace_ctx.string_size), in ecma_builtin_string_prototype_object_replace()
472 if (replace_ctx.string_size >= search_size) in ecma_builtin_string_prototype_object_replace()
475 const lit_utf8_byte_t *const input_end_p = replace_ctx.string_p + replace_ctx.string_size; in ecma_builtin_string_prototype_object_replace()
552 jmem_heap_free_block ((void *) replace_ctx.string_p, replace_ctx.string_size); in ecma_builtin_string_prototype_object_replace()
851 lit_utf8_size_t string_size; in ecma_builtin_string_prototype_object_split() local
854 &string_size, in ecma_builtin_string_prototype_object_split()
866 const lit_utf8_byte_t *const string_end_p = string_buffer_p + string_size; in ecma_builtin_string_prototype_object_split()
911 jmem_heap_free_block ((void *) string_buffer_p, string_size); in ecma_builtin_string_prototype_object_split()
Decma-builtin-helpers.h75 lit_utf8_size_t string_size; /**< source string size */ member
216 lit_utf8_size_t string_size);
Decma-builtin-json.c696 lit_utf8_size_t string_size) /**< size of the string */ in ecma_builtin_json_parse_buffer() argument
700 token.end_p = str_start_p + string_size; in ecma_builtin_json_parse_buffer()
742 ECMA_STRING_TO_UTF8_STRING (text_string_p, str_start_p, string_size); in ecma_builtin_json_parse()
743 ecma_value_t result = ecma_builtin_json_parse_buffer (str_start_p, string_size); in ecma_builtin_json_parse()
744 ECMA_FINALIZE_UTF8_STRING (str_start_p, string_size); in ecma_builtin_json_parse()
Decma-builtin-helpers.c848 && ctx_p->matched_p <= ctx_p->string_p + ctx_p->string_size)); in ecma_builtin_replace_substitute()
926 … (lit_utf8_size_t) (ctx_p->string_p + ctx_p->string_size - begin_p)); in ecma_builtin_replace_substitute()
934 … ctx_p->string_size - ctx_p->match_byte_pos - ctx_p->matched_size); in ecma_builtin_replace_substitute()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c2352 lit_utf8_size_t string_size; in ecma_regexp_split_helper()
2356 &string_size, in ecma_regexp_split_helper()
2363 const lit_utf8_byte_t *const string_end_p = string_buffer_p + string_size; in ecma_regexp_split_helper()
2369 string_buffer_p + string_size); in ecma_regexp_split_helper()
2477 jmem_heap_free_block ((void *) string_buffer_p, string_size); in ecma_regexp_split_helper()
2514 &(ctx_p->string_size), in ecma_regexp_replace_helper_fast()
2519 const lit_utf8_byte_t *const string_end_p = ctx_p->string_p + ctx_p->string_size; in ecma_regexp_replace_helper_fast()
2676 jmem_heap_free_block ((void *) ctx_p->string_p, ctx_p->string_size); in ecma_regexp_replace_helper_fast()
2965 &(replace_ctx.string_size), in ecma_regexp_replace_helper()
2977 const lit_utf8_byte_t *const string_end_p = replace_ctx.string_p + replace_ctx.string_size; in ecma_regexp_replace_helper()
[all …]
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c1488 lit_utf8_size_t string_size) /**< string size */ in jerry_append_chars_to_buffer() argument
1495 if (string_size == 0) in jerry_append_chars_to_buffer()
1497 string_size = (lit_utf8_size_t) strlen (chars); in jerry_append_chars_to_buffer()
1500 if (buffer_p + string_size <= buffer_end_p) in jerry_append_chars_to_buffer()
1502 memcpy ((char *) buffer_p, chars, string_size); in jerry_append_chars_to_buffer()
1504 return buffer_p + string_size; in jerry_append_chars_to_buffer()
/third_party/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs268 let string_size: usize = 4; in create_shared_string() localVariable
271 let iter = str_memory[string_size..size + string_size].iter(); in create_shared_string()
/third_party/glib/glib/
Dgstdio.c534 gsize string_size; in _g_win32_readlink_utf16_handle() local
567 string_size = result / sizeof (gunichar2); in _g_win32_readlink_utf16_handle()
568 _g_win32_strip_extended_ntobjm_prefix (buf ? buf : *alloc_buf, &string_size); in _g_win32_readlink_utf16_handle()
570 return string_size * sizeof (gunichar2); in _g_win32_readlink_utf16_handle()

12