Home
last modified time | relevance | path

Searched refs:stringLength (Results 1 – 25 of 54) sorted by relevance

123

/third_party/freetype/src/base/
Dftsnames.c62 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_Name()
68 if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_Name()
70 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_Name()
73 entry->stringLength = 0; in FT_Get_Sfnt_Name()
82 aname->string_len = entry->stringLength; in FT_Get_Sfnt_Name()
118 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_LangTag()
124 if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_LangTag()
126 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_LangTag()
129 entry->stringLength = 0; in FT_Get_Sfnt_LangTag()
134 alangTag->string_len = entry->stringLength; in FT_Get_Sfnt_LangTag()
/third_party/flutter/skia/third_party/externals/freetype/src/base/
Dftsnames.c63 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_Name()
69 if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_Name()
71 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_Name()
74 entry->stringLength = 0; in FT_Get_Sfnt_Name()
83 aname->string_len = entry->stringLength; in FT_Get_Sfnt_Name()
119 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_LangTag()
125 if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_LangTag()
127 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_LangTag()
130 entry->stringLength = 0; in FT_Get_Sfnt_LangTag()
135 alangTag->string_len = entry->stringLength; in FT_Get_Sfnt_LangTag()
/third_party/skia/third_party/externals/freetype/src/base/
Dftsnames.c62 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_Name()
68 if ( FT_QNEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_Name()
70 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_Name()
73 entry->stringLength = 0; in FT_Get_Sfnt_Name()
82 aname->string_len = entry->stringLength; in FT_Get_Sfnt_Name()
118 if ( entry->stringLength > 0 && !entry->string ) in FT_Get_Sfnt_LangTag()
124 if ( FT_QNEW_ARRAY ( entry->string, entry->stringLength ) || in FT_Get_Sfnt_LangTag()
126 FT_STREAM_READ( entry->string, entry->stringLength ) ) in FT_Get_Sfnt_LangTag()
129 entry->stringLength = 0; in FT_Get_Sfnt_LangTag()
134 alangTag->string_len = entry->stringLength; in FT_Get_Sfnt_LangTag()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DExperimentalTestDataProvider.java41 private final int stringLength; field in ExperimentalTestDataProvider
43 public ExperimentalTestDataProvider(int stringLength) { in ExperimentalTestDataProvider() argument
44 this.stringLength = stringLength; in ExperimentalTestDataProvider()
80 StringBuilder builder = new StringBuilder(stringLength); in getString()
81 for (int i = 0; i < stringLength; ++i) { in getString()
/third_party/node/deps/npm/node_modules/text-table/
Dindex.js5 var stringLength = opts.stringLength
23 - (stringLength(c) - index)
33 var n = stringLength(c);
41 var n = (sizes[ix] - stringLength(c)) || 0;
/third_party/icu/icu4c/source/test/cintltst/
Dusettest.c274 int32_t stringLength = 0; in expectContainment() local
279 stringLength = (int32_t)(p - stringStart - 1); in expectContainment()
280 strncpy(strCopy, stringStart, stringLength); in expectContainment()
281 strCopy[stringLength] = 0; in expectContainment()
283 u_charsToUChars(stringStart, ustr, stringLength); in expectContainment()
285 if (uset_containsString(set, ustr, stringLength) == isIn) { in expectContainment()
421 int32_t stringLength = 0; in expectItems() local
426 stringLength = (int32_t)(p - stringStart - 1); in expectItems()
427 strncpy(strCopy, stringStart, stringLength); in expectItems()
428 strCopy[stringLength] = 0; in expectItems()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dbytestrietest.cpp696 int32_t stringLength= (i&1) ? -1 : static_cast<int32_t>(strlen(data[i].s)); in checkNext() local
698 if( !USTRINGTRIE_HAS_VALUE(result=trie.next(data[i].s, stringLength)) || in checkNext()
711 stringLength = static_cast<int32_t>(strlen(data[i].s)); in checkNext()
713 for(int32_t j=0; j<stringLength; ++j) { in checkNext()
781 int32_t stringLength= static_cast<int32_t>(strlen(expectedString)); in checkNextWithState() local
782 int32_t partialLength = stringLength / 3; in checkNextWithState()
808 stringLength-partialLength)) || in checkNextWithState()
816 stringLength-partialLength)) || in checkNextWithState()
835 int32_t stringLength= static_cast<int32_t>(strlen(expectedString)); in checkNextWithState64() local
836 int32_t partialLength = stringLength / 3; in checkNextWithState64()
[all …]
Ducharstrietest.cpp865 int32_t stringLength= (i&1) ? -1 : expectedString.length(); in checkNext() local
868 result=trie.next(expectedString.getTerminatedBuffer(), stringLength)) || in checkNext()
881 stringLength=expectedString.length(); in checkNext()
883 for(int32_t j=0; j<stringLength; ++j) { in checkNext()
943 int32_t stringLength=expectedString.length(); in checkNextWithState() local
944 int32_t partialLength=stringLength/3; in checkNextWithState()
970 stringLength-partialLength)) || in checkNextWithState()
978 stringLength-partialLength)) || in checkNextWithState()
997 int32_t stringLength=expectedString.length(); in checkNextWithState64() local
998 int32_t partialLength = stringLength / 3; in checkNextWithState64()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/lang/
DCharSequences.java138 int stringLength = string.length(); in compare() local
139 if (stringLength == 0) { in compare()
150 return stringLength - 1; in compare()
158 if (stringLength > 1) { in compare()
165 return stringLength - 2; in compare()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DBytesTrieTest.java623 int stringLength=data[i].s.length(); in checkNext() local
625 if( !(result=trie.next(data[i].bytes, 0, stringLength)).hasValue() || in checkNext()
639 for(int j=0; j<stringLength; ++j) { in checkNext()
703 int stringLength=data[i].s.length(); in checkNextWithState() local
704 int partialLength=stringLength/3; in checkNextWithState()
727 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
732 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
750 int stringLength=data[i].s.length(); in checkNextWithState64() local
751 int partialLength=stringLength/3; in checkNextWithState64()
775 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64()
[all …]
DCharsTrieTest.java766 int stringLength=expectedString.length(); in checkNext() local
768 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext()
782 for(int j=0; j<stringLength; ++j) { in checkNext()
849 int stringLength=expectedString.length(); in checkNextWithState() local
850 int partialLength=stringLength/3; in checkNextWithState()
873 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
878 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
896 int stringLength=expectedString.length(); in checkNextWithState64() local
897 int partialLength=stringLength/3; in checkNextWithState64()
921 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64()
[all …]
/third_party/gptfdisk/
Dsupport.cc50 int stringLength; in ReadString() local
53 stringLength = strlen(efiString); in ReadString()
54 if ((stringLength > 0) && (efiString[stringLength - 1] == '\n')) in ReadString()
55 efiString[stringLength - 1] = '\0'; in ReadString()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp74 int stringLength; in setSource() local
78 stringLength = length[i]; in setSource()
82 stringLength = (int)strlen(string[i]); in setSource()
85 strncpy(code, string[i], stringLength); in setSource()
86 code += stringLength; in setSource()
/third_party/node/deps/icu-small/source/tools/genrb/
Dparse.cpp278 int32_t &stringLength, UErrorCode *status) in getInvariantString() argument
305 stringLength = tokenValue->fLength; in getInvariantString()
1406 int32_t stringLength; in parseIntVector() local
1407 string = getInvariantString(state, NULL, NULL, stringLength, status); in parseIntVector()
1419 if(len==stringLength) in parseIntVector()
1457 int32_t stringLength; in parseBinary() local
1458 LocalMemory<char> string(getInvariantString(state, &line, NULL, stringLength, status)); in parseBinary()
1476 if (stringLength > 0 && value.allocateInsteadAndCopy(stringLength) == NULL) in parseBinary()
1483 for (int32_t i = 0; i < stringLength;) in parseBinary()
1488 if (i == stringLength) { in parseBinary()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/genrb/
Dparse.cpp278 int32_t &stringLength, UErrorCode *status) in getInvariantString() argument
305 stringLength = tokenValue->fLength; in getInvariantString()
1406 int32_t stringLength; in parseIntVector() local
1407 string = getInvariantString(state, NULL, NULL, stringLength, status); in parseIntVector()
1419 if(len==stringLength) in parseIntVector()
1457 int32_t stringLength; in parseBinary() local
1458 LocalMemory<char> string(getInvariantString(state, &line, NULL, stringLength, status)); in parseBinary()
1476 if (stringLength > 0 && value.allocateInsteadAndCopy(stringLength) == NULL) in parseBinary()
1483 for (int32_t i = 0; i < stringLength;) in parseBinary()
1488 if (i == stringLength) { in parseBinary()
[all …]
/third_party/icu/icu4c/source/tools/genrb/
Dparse.cpp278 int32_t &stringLength, UErrorCode *status) in getInvariantString() argument
305 stringLength = tokenValue->fLength; in getInvariantString()
1406 int32_t stringLength; in parseIntVector() local
1407 string = getInvariantString(state, NULL, NULL, stringLength, status); in parseIntVector()
1419 if(len==stringLength) in parseIntVector()
1457 int32_t stringLength; in parseBinary() local
1458 LocalMemory<char> string(getInvariantString(state, &line, NULL, stringLength, status)); in parseBinary()
1476 if (stringLength > 0 && value.allocateInsteadAndCopy(stringLength) == NULL) in parseBinary()
1483 for (int32_t i = 0; i < stringLength;) in parseBinary()
1488 if (i == stringLength) { in parseBinary()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/sfnt/
Dsfdriver.c505 if ( FT_ALLOC( result, entry->stringLength / 2 + 1 ) ) in get_win_string()
509 FT_FRAME_ENTER( entry->stringLength ) ) in get_win_string()
515 for ( len = entry->stringLength / 2; len > 0; len--, p += 2 ) in get_win_string()
539 entry->stringLength = 0; in get_win_string()
564 if ( FT_ALLOC( result, entry->stringLength + 1 ) ) in get_apple_string()
568 FT_FRAME_ENTER( entry->stringLength ) ) in get_apple_string()
574 for ( len = entry->stringLength; len > 0; len--, p++ ) in get_apple_string()
599 entry->stringLength = 0; in get_apple_string()
623 if ( name->nameID == id && name->stringLength > 0 ) in sfnt_get_name_id()
Dttload.c855 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
866 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
929 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
932 entry->stringLength = 0; in tt_face_load_name()
959 if ( entry->stringLength == 0 ) in tt_face_load_name()
965 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
976 !table->langTags[entry->languageID - 0x8000U].stringLength ) in tt_face_load_name()
/third_party/skia/third_party/externals/freetype/src/sfnt/
Dsfdriver.c504 if ( FT_QALLOC( result, entry->stringLength / 2 + 1 ) ) in get_win_string()
508 FT_FRAME_ENTER( entry->stringLength ) ) in get_win_string()
514 for ( len = entry->stringLength / 2; len > 0; len--, p += 2 ) in get_win_string()
538 entry->stringLength = 0; in get_win_string()
563 if ( FT_QALLOC( result, entry->stringLength + 1 ) ) in get_apple_string()
567 FT_FRAME_ENTER( entry->stringLength ) ) in get_apple_string()
573 for ( len = entry->stringLength; len > 0; len--, p++ ) in get_apple_string()
598 entry->stringLength = 0; in get_apple_string()
622 if ( name->nameID == id && name->stringLength > 0 ) in sfnt_get_name_id()
Dttload.c865 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
876 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
939 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
942 entry->stringLength = 0; in tt_face_load_name()
976 if ( entry->stringLength == 0 ) in tt_face_load_name()
982 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
993 !table->langTags[entry->languageID - 0x8000U].stringLength ) in tt_face_load_name()
/third_party/freetype/src/sfnt/
Dsfdriver.c504 if ( FT_ALLOC( result, entry->stringLength / 2 + 1 ) ) in get_win_string()
508 FT_FRAME_ENTER( entry->stringLength ) ) in get_win_string()
514 for ( len = entry->stringLength / 2; len > 0; len--, p += 2 ) in get_win_string()
538 entry->stringLength = 0; in get_win_string()
563 if ( FT_ALLOC( result, entry->stringLength + 1 ) ) in get_apple_string()
567 FT_FRAME_ENTER( entry->stringLength ) ) in get_apple_string()
573 for ( len = entry->stringLength; len > 0; len--, p++ ) in get_apple_string()
598 entry->stringLength = 0; in get_apple_string()
622 if ( name->nameID == id && name->stringLength > 0 ) in sfnt_get_name_id()
Dttload.c862 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
873 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
936 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
939 entry->stringLength = 0; in tt_face_load_name()
966 if ( entry->stringLength == 0 ) in tt_face_load_name()
972 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
983 !table->langTags[entry->languageID - 0x8000U].stringLength ) in tt_face_load_name()
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/dawn_wire/
DWireCmd.cpp240 size_t stringLength = transfer->{{memberName}}Strlen;
242 DESERIALIZE_TRY(GetPtrFromBuffer(buffer, size, stringLength, &stringInBuffer));
245 DESERIALIZE_TRY(GetSpace(allocator, stringLength + 1, &copiedString));
246 memcpy(copiedString, stringInBuffer, stringLength);
247 copiedString[stringLength] = '\0';
/third_party/typescript/tests/baselines/reference/transformApi/
DtransformsCorrectly.templateSpans.js4 exports.stringLength = x.trim().length;
/third_party/node/deps/npm/node_modules/text-table/test/
Dansi-colors.js10 stringLength: function(s) { return ansiTrim(s).length } method

123