Home
last modified time | relevance | path

Searched refs:uprv_strlen (Results 1 – 25 of 123) sorted by relevance

12345

/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp109 result = (char *)uprv_malloc(sizeof(char)*uprv_strlen(id) + 1); in getID()
110 uprv_memset(result, 0, sizeof(char)*uprv_strlen(id) + 1); in getID()
113 result = (char *)uprv_malloc(sizeof(char)*(uprv_strlen(id) + 1 + uprv_strlen(curKey)) + 1); in getID()
114 uprv_memset(result, 0, sizeof(char)*(uprv_strlen(id) + 1 + uprv_strlen(curKey)) + 1); in getID()
189 int idLen = (int) uprv_strlen(id); in parseFilename()
275 destLen+=(int32_t)uprv_strlen("\x26\x61\x6d\x70\x3b"); in convertAndEscape()
279 destLen+=(int32_t)uprv_strlen("\x26\x6c\x74\x3b"); in convertAndEscape()
283 destLen+=(int32_t)uprv_strlen("\x26\x67\x74\x3b"); in convertAndEscape()
287 destLen+=(int32_t)uprv_strlen("\x26\x71\x75\x6f\x74\x3b"); in convertAndEscape()
291 destLen+=(int32_t)uprv_strlen("\x26\x61\x70\x6f\x73\x3b"); in convertAndEscape()
[all …]
Dwrtjava.cpp344 T_FileStream_write(out, object, (int32_t)uprv_strlen(object)); in array_write_java()
348 T_FileStream_write(out, arr, (int32_t)uprv_strlen(arr)); in array_write_java()
370 T_FileStream_write(out,arr,(int32_t)uprv_strlen(arr)); in array_write_java()
389 T_FileStream_write(out, stringArr, (int32_t)uprv_strlen(stringArr)); in intvector_write_java()
400 T_FileStream_write(out, intArr, (int32_t)uprv_strlen(intArr)); in intvector_write_java()
426 T_FileStream_write(out, intC, (int32_t)uprv_strlen(intC)); in int_write_java()
448 T_FileStream_write(out, type, (int32_t)uprv_strlen(type)); in bytes_write_java()
468 T_FileStream_write(out, byteBuffer, (int32_t)uprv_strlen(byteBuffer)); in bytes_write_java()
491 T_FileStream_write(out,type,(int32_t)uprv_strlen(type)); in bytes_write_java()
512 T_FileStream_write(out, obj, (int32_t)uprv_strlen(obj)); in table_write_java()
[all …]
Dgenrb.cpp147 if(uprv_strlen(s) != 1 || (s[0] < '1' && '3' < s[0])) { in main()
303 … char *nameWithoutSuffix = static_cast<char *>(uprv_malloc(uprv_strlen(poolResName) + 1)); in main()
576 filelen = (int32_t)uprv_strlen(filename); in processFile()
601 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
604 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
755 pkgLen = (int32_t)(1 + uprv_strlen(packageName)); in make_res_filename()
762 basename = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename()
770 dirname = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename()
780 resName = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(dirname) in make_res_filename()
782 + uprv_strlen(basename) in make_res_filename()
[all …]
/external/icu/icu4c/source/tools/pkgdata/
Dpkgtypes.c41 if(buffer[uprv_strlen(buffer)-1] == '"') { in pkg_writeCharListWrap()
42 buffer[uprv_strlen(buffer)-1] = '\0'; in pkg_writeCharListWrap()
52 if(l->str[uprv_strlen(l->str)-1] != '"') { in pkg_writeCharListWrap()
56 T_FileStream_write(s, buffer, (int32_t)uprv_strlen(buffer)); in pkg_writeCharListWrap()
58 ln += (int32_t)uprv_strlen(l->str); in pkg_writeCharListWrap()
65 T_FileStream_write(s, brk, (int32_t)uprv_strlen(brk)); in pkg_writeCharListWrap()
67 T_FileStream_write(s, delim, (int32_t)uprv_strlen(delim)); in pkg_writeCharListWrap()
84 if(uprv_strlen(l->str) >= 1023) in pkg_writeCharList()
91 if(buffer[uprv_strlen(buffer)-1] == '"') { in pkg_writeCharList()
92 buffer[uprv_strlen(buffer)-1] = '\0'; in pkg_writeCharList()
[all …]
Dpkgdata.cpp367 int32_t len = (int32_t)uprv_strlen(o.shortName); in main()
667 …if (pkgDataFlags[LIB_EXT_ORDER][uprv_strlen(pkgDataFlags[LIB_EXT_ORDER])-1] == pkgDataFlags[SO_EXT… in pkg_executeOptions()
713 (uprv_strlen(genccodeAssembly)>3) && in pkg_executeOptions()
893 const char* FILE_EXTENSION_SEP = uprv_strlen(pkgDataFlags[SO_EXT]) == 0 ? "" : "."; in createFileNames()
1015 const char* FILE_EXTENSION_SEP = uprv_strlen(pkgDataFlags[SO_EXT]) == 0 ? "" : "."; in pkg_createSymLinks()
1019 …if (uprv_strlen(libFileNames[LIB_FILE_VERSION]) == 0 || uprv_strlen(libFileNames[LIB_FILE_VERSION_… in pkg_createSymLinks()
1222 bufferLength = uprv_strlen(buffer); in pkg_installFileMode()
1346 …length = uprv_strlen(pkgDataFlags[AR]) + uprv_strlen(pkgDataFlags[ARFLAGS]) + uprv_strlen(targetDi… in pkg_generateLibraryFile()
1347uprv_strlen(libFileNames[LIB_FILE_VERSION]) + uprv_strlen(objectFile) + uprv_strlen(pkgDataFlags[R… in pkg_generateLibraryFile()
1372 length = uprv_strlen(pkgDataFlags[GENLIB]) + uprv_strlen(pkgDataFlags[LDICUDTFLAGS]) + in pkg_generateLibraryFile()
[all …]
/external/icu/icu4c/source/common/
Duloc_tag.c226 len = (int32_t)uprv_strlen(s); in _isLanguageSubtag()
241 len = (int32_t)uprv_strlen(s); in _isExtlangSubtag()
255 len = (int32_t)uprv_strlen(s); in _isScriptSubtag()
270 len = (int32_t)uprv_strlen(s); in _isRegionSubtag()
288 len = (int32_t)uprv_strlen(s); in _isVariantSubtag()
306 len = (int32_t)uprv_strlen(s); in _isPrivateuseVariantSubtag()
320 len = (int32_t)uprv_strlen(s); in _isExtensionSingleton()
334 len = (int32_t)uprv_strlen(s); in _isExtensionSubtag()
348 len = (int32_t)uprv_strlen(s); in _isExtensionSubtags()
377 len = (int32_t)uprv_strlen(s); in _isPrivateuseValueSubtag()
[all …]
Duloc.cpp538 int32_t localeIDLength = uprv_strlen(localeID); in getShortestSubtagLength()
600 int32_t keywordNameLen = (int32_t)uprv_strlen(keywordName); in locale_canonKeywordName()
725 i = (int32_t)uprv_strlen(equalSign); in _getKeywords()
761 keywordList[numKeywords].keywordLen = (int32_t)uprv_strlen(addKeyword); in _getKeywords()
763 keywordList[numKeywords].valueLen = (int32_t)uprv_strlen(addValue); in _getKeywords()
905 …} else if(!startSearchHere && (int32_t)uprv_strlen(nextSeparator) < bufferCapacity) { /* last item… in uloc_getKeywordValue()
906 i = (int32_t)uprv_strlen(nextSeparator); in uloc_getKeywordValue()
918 result = (int32_t)uprv_strlen(nextSeparator); in uloc_getKeywordValue()
954 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue()
968 keywordValueLen = (int32_t)uprv_strlen(keywordValue); in uloc_setKeywordValue()
[all …]
Dunistr_cnv.cpp47 doCodepageCreate(codepageData, (int32_t)uprv_strlen(codepageData), 0); in UnicodeString()
66 doCodepageCreate(codepageData, (int32_t)uprv_strlen(codepageData), codepage); in UnicodeString()
92 srcLength=(int32_t)uprv_strlen(src); in UnicodeString()
307 dataLength = (int32_t)uprv_strlen(codepageData); in doCodepageCreate()
Dlocmap.c942 int32_t posixIDlen = (int32_t)uprv_strlen(posixID); in getHostID()
1038 tmpLen = uprv_strlen(locName); in uprv_convertToPosix()
1071 if (pCandidate && (pPosixID == NULL || uprv_strlen(pCandidate) > uprv_strlen(pPosixID))) { in uprv_convertToPosix()
1077 int32_t resLen = uprv_strlen(pPosixID); in uprv_convertToPosix()
1125 if (!langID || !posixID || uprv_strlen(langID) < 2 || uprv_strlen(posixID) < 2) { in uprv_convertToLCID()
Dlocid.cpp307 lsize = (int32_t)uprv_strlen(newLanguage); in Locale()
320 csize = (int32_t)uprv_strlen(newCountry); in Locale()
338 vsize = (int32_t)uprv_strlen(newVariant); in Locale()
366 ksize = (int32_t)uprv_strlen(newKeywords); in Locale()
444 fullName = (char *)uprv_malloc(sizeof(char)*(uprv_strlen(other.fullName)+1)); in operator =()
654 return ustr_hashCharsN(fullName, uprv_strlen(fullName)); in hashCode()
971 kw += uprv_strlen(kw)+1; in count()
981 len = (int32_t)uprv_strlen(current); in next()
Dstringpiece.cpp19 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece()
49 length_ = static_cast<int32_t>(uprv_strlen(str)); in set()
Dloclikely.cpp205 (int32_t)uprv_strlen(unknownLanguage), in createTagStringWithAlternates()
233 (int32_t)uprv_strlen(unknownLanguage), in createTagStringWithAlternates()
511 *langLength = (int32_t)uprv_strlen(lang); in parseTagString()
901 trailingLength = (int32_t)uprv_strlen(trailing); in _uloc_addLikelySubtags()
920 const int32_t localIDLength = (int32_t)uprv_strlen(localeID); in _uloc_addLikelySubtags()
1009 trailingLength = (int32_t)uprv_strlen(trailing); in _uloc_minimizeSubtags()
1180 const int32_t localeIDLength = (int32_t)uprv_strlen(localeID); in _uloc_minimizeSubtags()
Duinvchar.c463 outLength=(int32_t)uprv_strlen(outString); in uprv_compareInvAscii()
508 outLength=(int32_t)uprv_strlen(outString); in uprv_compareInvEbcdic()
574 n = uprv_strlen((const char*)src)+1; /* copy NUL */ in uprv_aestrncpy()
595 n = uprv_strlen((const char*)src)+1; /* copy NUL */ in uprv_eastrncpy()
Dudata.cpp350 nameLen = (int32_t)uprv_strlen(baseName); in udata_cacheDataItem()
459 basenameLen = (int32_t)uprv_strlen(basename); in UDataPathIterator()
522 pathLen = (int32_t)uprv_strlen(currentPath); in next()
528 pathLen = (int32_t)uprv_strlen(currentPath); in next()
563 uprv_strlen(pathBasename)==(basenameLen+4)) { /* base+suffix = full len */ in next()
1145 uprv_strlen(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING)) || in doOpenChoice()
1147 uprv_strlen(U_ICUDATA_ALIAS U_TREE_SEPARATOR_STRING))) { in doOpenChoice()
Duresbund.cpp285 int32_t len = (int32_t)uprv_strlen(name); in setEntryName()
466 *isDefault = (UBool)(uprv_strncmp(name, defaultLoc, uprv_strlen(name)) == 0); in findFirstExisting()
760 uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) { in entryOpenDirect()
951 capacity = (int32_t)uprv_strlen(parent->fResPath) + 1; in init_resb_result()
1038 len = (int32_t)(uprv_strlen(key) + 1); in init_resb_result()
1082 if(uprv_strlen(keyPath) > URES_MAX_BUFFER_SIZE) { in init_resb_result()
1083 … pathBuf = (char *)uprv_malloc((uprv_strlen(keyPath)+1)*sizeof(char)); in init_resb_result()
1185 ures_appendResPath(resB, key, (int32_t)uprv_strlen(key), status); in init_resb_result()
1676 length = (int32_t)(uprv_strlen(path)+1); in ures_findResource()
2425 len = (int32_t)uprv_strlen(result); in ures_loc_nextLocale()
[all …]
Ducnvsel.cpp189 (int32_t)uprv_strlen(converterList != NULL ? converterList[i] : ucnv_getAvailableName(i)) + 1; in ucnvsel_open()
207 allStrings += uprv_strlen(newSelector->encodings[i]) + 1; in ucnvsel_open()
583 s += uprv_strlen(s) + 1; in ucnvsel_openFromSerialized()
637 *resultLength = (int32_t)uprv_strlen(result); in ucnvsel_next_encoding()
805 length = (int32_t)uprv_strlen(s); in ucnvsel_selectForUTF8()
Dputil.cpp1062 int32_t tzZoneInfoLen = uprv_strlen(TZZONEINFO); in uprv_tzname()
1072 tzZoneInfoLen = uprv_strlen(TZZONEINFO2); in uprv_tzname()
1211 length=(int32_t)uprv_strlen(directory); in u_setDataDirectory()
1532 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1549 correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID)+1));
1574 len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
1596 correctedPOSIXLocale = (char *)uprv_malloc(uprv_strlen(posixID) + 1);
1700 LocaleLen = uprv_strlen(correctedLocale);
/external/icu/icu4c/source/tools/toolutil/
Dpkg_gencmn.c315 s=filename+uprv_strlen(filename); in createCommonDataFile()
321 s+=uprv_strlen(s); in createCommonDataFile()
325 s+=uprv_strlen(s); in createCommonDataFile()
429 length = (uint32_t)(uprv_strlen(filename) + 1 + uprv_strlen(name) + 1); in addFile()
472 length = (uint32_t)(uprv_strlen(filename) + 1 + uprv_strlen(name) + 1); in addFile()
516 length = (uint32_t)(uprv_strlen(path) + 1); in pathToFullPath()
517 newLength = (length + 1 + (int32_t)uprv_strlen(source)); in pathToFullPath()
525 n = (int32_t)uprv_strlen(fullPath); in pathToFullPath()
Dpkg_genc.c297 length=uprv_strlen(entry); in writeAssemblyCode()
367 getOutFilename(filename, destdir, buffer, entry+uprv_strlen(entry), ".c", optFilename); in writeCCode()
378 length=uprv_strlen(entry); in writeCCode()
489 s+=uprv_strlen(s); in write32()
1057 entryLength=(int32_t)uprv_strlen(entry+entryLengthOffset); in writeObjectCode()
/external/icu/icu4c/source/test/intltest/
Dtextfile.cpp38 name = uprv_malloc(uprv_strlen(_name) + 1); in TextFile()
39 encoding = uprv_malloc(uprv_strlen(_encoding) + 1); in TextFile()
55 if (!ensureCapacity((int32_t)(uprv_strlen(testDir) + uprv_strlen(name) + 1))) { in TextFile()
Dtestidn.cpp110 basename=filename+uprv_strlen(filename); in testData()
116 basename=filename+uprv_strlen(filename); in testData()
125 basename = basename + uprv_strlen(SPREP_DIR); in testData()
/external/icu/icu4c/source/tools/gensprep/
Dgensprep.c206 …ilename = (char* ) uprv_malloc(uprv_strlen(srcDir) + uprv_strlen(inputFileName) + (icuUniDataDir =… in main()
217 basename=filename+uprv_strlen(filename); in main()
236 basename=filename+uprv_strlen(filename); in main()
/external/icu/icu4c/source/test/cintltst/
Dcposxtst.c97 if (len != (int32_t) uprv_strlen(DATA[i+2])) { in TestMessageCatalog()
99 len, uprv_strlen(DATA[i+2])); in TestMessageCatalog()
/external/icu/icu4c/source/i18n/
Dinputext.cpp54 fRawLength = len == -1? (int32_t)uprv_strlen(in) : len; in setText()
61 len = (int32_t)uprv_strlen(encoding); in setDeclaredEncoding()
/external/icu/icu4c/source/tools/gencnval/
Dgencnval.c547 if (uprv_strlen(currTag) == tagLen && !uprv_strnicmp(currTag, tag, tagLen)) { in getTagNumber()
963 while ((currStrLen = (int32_t)uprv_strlen(origStringBlock)) < stringBlockLength) { in createNormalizedAliasStrings()
968 normStrLen = uprv_strlen(normalizedStrings); in createNormalizedAliasStrings()
1086 length=(int32_t)uprv_strlen(s); in allocString()
1125 …return (int)uprv_strlen(GET_ALIAS_STR(*(uint16_t*)alias1)) - (int)uprv_strlen(GET_ALIAS_STR(*(uint… in compareAliases()

12345