Home
last modified time | relevance | path

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

12

/external/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()
/external/emma/core/java12/com/vladium/util/
DWCMatcher.java238 final int stringLength = string.length; in matches() local
269 if (si_i == stringLength) return false; in matches()
283 if (si + i == stringLength) return true; in matches()
297 final int stringLength = string.length; in matches() local
328 if (si_i == stringLength) return false; in matches()
342 if (si + i == stringLength) return true; in matches()
/external/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 …]
/external/proguard/src/proguard/gui/splash/
DTypeWriterString.java57 int stringLength = string.length(); in getString() local
58 int length = (int)(stringLength * t + 0.5); in getString()
63 if (t > 0.0 && length < stringLength) in getString()
/external/mesa3d/src/glx/apple/
Dappledri.c337 if (rep.stringLength > 0 && rep.stringLength <= pathlen) { in XAppleDRICreateSharedBuffer()
338 _XReadPad(dpy, path, rep.stringLength); in XAppleDRICreateSharedBuffer()
404 if (rep.stringLength > 0 && rep.stringLength <= bufnamesize) { in XAppleDRICreatePixmap()
405 _XReadPad(dpy, bufname, rep.stringLength); in XAppleDRICreatePixmap()
419 else if (rep.stringLength > 0) { in XAppleDRICreatePixmap()
420 _XEatData(dpy, rep.stringLength); in XAppleDRICreatePixmap()
Dappledristr.h196 CARD32 stringLength B32; /* 0 on error */
239 CARD32 stringLength B32; /*32 */
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DCharSequences.java136 int stringLength = string.length(); in compare() local
137 if (stringLength == 0) { in compare()
148 return stringLength - 1; in compare()
156 if (stringLength > 1) { in compare()
163 return stringLength - 2; in compare()
/external/icu/android_icu4j/src/main/java/android/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()
/external/v8/src/js/
Dharmony-string-padding.js19 var stringLength = thisString.length;
21 if (maxLength <= stringLength) return "";
33 var fillLength = maxLength - stringLength;
/external/icu/icu4c/source/test/intltest/
Dbytestrietest.cpp694 int32_t stringLength= (i&1) ? -1 : strlen(data[i].s); in checkNext() local
696 if( !USTRINGTRIE_HAS_VALUE(result=trie.next(data[i].s, stringLength)) || in checkNext()
709 stringLength=strlen(data[i].s); in checkNext()
711 for(int32_t j=0; j<stringLength; ++j) { in checkNext()
779 int32_t stringLength=strlen(expectedString); in checkNextWithState() local
780 int32_t partialLength=stringLength/3; in checkNextWithState()
806 stringLength-partialLength)) || in checkNextWithState()
814 stringLength-partialLength)) || in checkNextWithState()
834 int32_t stringLength=strlen(expectedString); in checkNextString() local
835 if(!trie.next(expectedString, stringLength/2)) { in checkNextString()
[all …]
Ducharstrietest.cpp863 int32_t stringLength= (i&1) ? -1 : expectedString.length(); in checkNext() local
866 result=trie.next(expectedString.getTerminatedBuffer(), stringLength)) || in checkNext()
879 stringLength=expectedString.length(); in checkNext()
881 for(int32_t j=0; j<stringLength; ++j) { in checkNext()
941 int32_t stringLength=expectedString.length(); in checkNextWithState() local
942 int32_t partialLength=stringLength/3; in checkNextWithState()
968 stringLength-partialLength)) || in checkNextWithState()
976 stringLength-partialLength)) || in checkNextWithState()
996 int32_t stringLength=expectedString.length(); in checkNextString() local
997 if(!trie.next(expectedString.getTerminatedBuffer(), stringLength/2)) { in checkNextString()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DBytesTrieTest.java601 int stringLength=data[i].s.length(); in checkNext() local
603 if( !(result=trie.next(data[i].bytes, 0, stringLength)).hasValue() || in checkNext()
617 for(int j=0; j<stringLength; ++j) { in checkNext()
681 int stringLength=data[i].s.length(); in checkNextWithState() local
682 int partialLength=stringLength/3; in checkNextWithState()
705 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
710 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
729 int stringLength=data[i].s.length(); in checkNextString() local
730 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString()
735 trie.next(expectedString, stringLength/2, stringLength); in checkNextString()
DCharsTrieTest.java744 int stringLength=expectedString.length(); in checkNext() local
746 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext()
760 for(int j=0; j<stringLength; ++j) { in checkNext()
827 int stringLength=expectedString.length(); in checkNextWithState() local
828 int partialLength=stringLength/3; in checkNextWithState()
851 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
856 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
875 int stringLength=expectedString.length(); in checkNextString() local
876 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString()
881 trie.next(expectedString, stringLength/2, stringLength); in checkNextString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DBytesTrieTest.java598 int stringLength=data[i].s.length(); in checkNext() local
600 if( !(result=trie.next(data[i].bytes, 0, stringLength)).hasValue() || in checkNext()
614 for(int j=0; j<stringLength; ++j) { in checkNext()
678 int stringLength=data[i].s.length(); in checkNextWithState() local
679 int partialLength=stringLength/3; in checkNextWithState()
702 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
707 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
726 int stringLength=data[i].s.length(); in checkNextString() local
727 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString()
732 trie.next(expectedString, stringLength/2, stringLength); in checkNextString()
DCharsTrieTest.java741 int stringLength=expectedString.length(); in checkNext() local
743 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext()
757 for(int j=0; j<stringLength; ++j) { in checkNext()
824 int stringLength=expectedString.length(); in checkNextWithState() local
825 int partialLength=stringLength/3; in checkNextWithState()
848 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
853 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState()
872 int stringLength=expectedString.length(); in checkNextString() local
873 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString()
878 trie.next(expectedString, stringLength/2, stringLength); in checkNextString()
/external/swiftshader/src/OpenGL/libGL/
DShader.cpp72 int stringLength; in setSource() local
76 stringLength = length[i]; in setSource()
80 stringLength = (int)strlen(string[i]); in setSource()
83 strncpy(code, string[i], stringLength); in setSource()
84 code += stringLength; in setSource()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DTypesLengths.java106 private static int stringLength; field in TypesLengths
168 return stringLength; in getTypeLength()
258 stringLength = typeLength; in setTypeLength()
/external/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp73 int stringLength; in setSource() local
77 stringLength = length[i]; in setSource()
81 stringLength = (int)strlen(string[i]); in setSource()
84 strncpy(code, string[i], stringLength); in setSource()
85 code += stringLength; in setSource()
/external/proguard/src/proguard/util/
DExtensionMatcher.java58 int stringLength = string.length(); in endsWithIgnoreCase() local
61 return string.regionMatches(true, stringLength - suffixLength, suffix, 0, suffixLength); in endsWithIgnoreCase()
/external/proguard/src/proguard/classfile/constant/
DUtf8Constant.java191 int stringLength = string.length(); in getByteArrayRepresentation() local
192 for (int stringIndex = 0; stringIndex < stringLength; stringIndex++) in getByteArrayRepresentation()
208 for (int stringIndex = 0; stringIndex < stringLength; stringIndex++) in getByteArrayRepresentation()
/external/freetype/src/sfnt/
Dsfdriver.c489 if ( FT_ALLOC( result, entry->stringLength / 2 + 1 ) ) in get_win_string()
493 FT_FRAME_ENTER( entry->stringLength ) ) in get_win_string()
496 entry->stringLength = 0; in get_win_string()
506 for ( len = entry->stringLength / 2; len > 0; len--, p += 2 ) in get_win_string()
550 if ( FT_ALLOC( result, entry->stringLength + 1 ) ) in get_apple_string()
554 FT_FRAME_ENTER( entry->stringLength ) ) in get_apple_string()
558 entry->stringLength = 0; in get_apple_string()
567 for ( len = entry->stringLength; len > 0; len--, p++ ) in get_apple_string()
608 if ( name->nameID == id && name->stringLength > 0 ) in sfnt_get_name_id()
Dttload.c835 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
846 FT_FRAME_USHORT( stringLength ), in tt_face_load_name()
909 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
912 entry->stringLength = 0; in tt_face_load_name()
939 if ( entry->stringLength == 0 ) in tt_face_load_name()
945 entry->stringOffset + entry->stringLength > storage_limit ) in tt_face_load_name()
956 !table->langTags[entry->languageID - 0x8000U].stringLength ) in tt_face_load_name()
Dsfobjs.c66 len = (FT_UInt)entry->stringLength / 2; in tt_name_ascii_from_utf16()
101 len = (FT_UInt)entry->stringLength; in tt_name_ascii_from_other()
167 if ( rec->nameID == nameid && rec->stringLength > 0 ) in tt_face_get_name()
269 if ( FT_QNEW_ARRAY ( rec->string, rec->stringLength ) || in tt_face_get_name()
271 FT_STREAM_READ( rec->string, rec->stringLength ) ) in tt_face_get_name()
274 rec->stringLength = 0; in tt_face_get_name()
/external/proguard/src/proguard/
DClassPathEntry.java209 int stringLength = string.length(); in endsWithIgnoreCase() local
212 return string.regionMatches(true, stringLength - in endsWithIgnoreCase()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPathParser.java13 public static long nCreatePathDataFromString(String pathString, int stringLength) { in nCreatePathDataFromString() argument

12