Searched refs:srcLen (Results 1 - 25 of 25) sorted by relevance

/external/icu4c/tools/genrb/
H A Drle.h40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status);
57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
63 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status);
68 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
H A Dprscmnts.cpp35 removeText(UChar *source, int32_t srcLen, argument
43 UnicodeString src(source, srcLen);
55 return dest.extract(source, srcLen, *status);
59 trim(UChar *src, int32_t srcLen, UErrorCode *status){ argument
60 srcLen = removeText(src, srcLen, "^[ \\r\\n]+ ", 0, "", status); // remove leading new lines
61 srcLen = removeText(src, srcLen, "^\\s+", 0, "", status); // remove leading spaces
62 srcLen = removeText(src, srcLen, "\\
67 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status) argument
75 getText(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UnicodeString patternString, UErrorCode* status) argument
112 getDescription( const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
136 getCount(const UChar* source, int32_t srcLen, UParseCommentsOption option, UErrorCode *status) argument
172 getAt(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, int32_t index, UParseCommentsOption option, UErrorCode* status) argument
213 getTranslate( const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
223 getNote(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
[all...]
H A Dprscmnts.h33 getNote(const UChar* source, int32_t srcLen,
37 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
40 getDescription( const UChar* source, int32_t srcLen,
44 getTranslate( const UChar* source, int32_t srcLen,
49 getAt(const UChar* source, int32_t srcLen,
56 getCount(const UChar* source, int32_t srcLen,
H A Drle.c148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { argument
152 *buffer++ = (uint16_t)(srcLen>>16);
157 *buffer++ = (uint16_t) srcLen;
159 for (; i<srcLen; ++i) {
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { argument
198 *buffer++ = ((uint16_t) (srcLen >> 16));
205 *buffer++=((uint16_t) srcLen);
206 for (; i<srcLen; ++i) {
239 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status) { argument
248 if(srcLen
295 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status) argument
[all...]
H A Dwrtxml.cpp162 static void strnrepchr(char* src, int32_t srcLen, char s, char r){ argument
164 for(i=0;i<srcLen;i++){
222 const UChar* src, int32_t srcLen, UErrorCode* status){
229 if(status==NULL || U_FAILURE(*status) || pDest==NULL || srcLen==0 || src == NULL){
234 destCap = srcLen * 8;
244 while(srcIndex<srcLen){
245 U16_NEXT(src, srcIndex, srcLen, c);
385 print(UChar* src, int32_t srcLen,const char *tagStart,const char *tagEnd, UErrorCode *status){ argument
386 int32_t bufCapacity = srcLen*4;
399 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,statu
221 convertAndEscape(char** pDest, int32_t destCap, int32_t* destLength, const UChar* src, int32_t srcLen, UErrorCode* status) argument
[all...]
H A Dwrtjava.c229 str_write_java( uint16_t* src, int32_t srcLen, UBool printEndLine, UErrorCode *status){ argument
231 uint32_t length = srcLen*8;
241 columnCount = getColumnCount(srcLen);
244 bufLen = uCharsToChars(buf,length,src,srcLen,status);
453 int32_t srcLen=res->u.fBinaryValue.fLength; local
455 if(srcLen>0 )
464 for (;byteIterator<srcLen;byteIterator++)
/external/icu4c/test/perf/normperf/
H A Dnormperf.h28 typedef int32_t (*NormFn)(const UChar* src,int32_t srcLen, UChar* dest,int32_t dstLen, int32_t options, UErrorCode* status);
29 typedef int32_t (*QuickCheckFn)(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status);
40 int32_t srcLen; member in class:QuickCheckPerfFunction
59 retVal = (*fn)(src,srcLen,mode, options, status);
74 return srcLen;
84 srcLen = 0;
94 srcLen = sourceLen;
111 int32_t srcLen; member in class:NormPerfFunction
129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status);
143 return srcLen;
257 ICUNormNFD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
261 ICUNormNFC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
265 ICUNormNFKD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
268 ICUNormNFKC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
272 ICUNormFCD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
276 ICUQuickCheck(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
283 ICUIsNormalized(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
290 ICUNormNFD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
294 ICUNormNFC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
298 ICUNormNFKD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
301 ICUNormNFKC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
305 ICUNormFCD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
309 ICUQuickCheck(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
313 ICUIsNormalized(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
320 WinNormNFD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
324 WinNormNFC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
328 WinNormNFKD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
331 WinNormNFKC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
335 WinNormNFD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
339 WinNormNFC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
343 WinNormNFKD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
346 WinNormNFKC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
[all...]
H A Dnormperf.cpp74 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ argument
79 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status);
83 reqLen= unorm_normalize(src,srcLen,mode, options,dest->name,reqLen+1,&status);
91 UChar* NormalizerPerformanceTest::normalizeInput(int32_t& len, const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ argument
97 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status);
101 reqLen= unorm_normalize(src,srcLen,mode, options,dest,reqLen+1,&status);
155 int32_t srcLen = 0; local
156 const UChar* src = getBuffer(srcLen,status);
165 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options);
166 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NF
[all...]
/external/icu4c/test/perf/strsrchperf/
H A Dstrsrchperf.h20 typedef void (*StrSrchFn) (BoyerMooreSearch * bms, const UChar *src, int32_t srcLen, const UChar *pttrn, int32_t pttrnLen, UErrorCode *status);
22 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status);
29 int32_t srcLen; member in class:StringSearchPerfFunction
41 (*fn)(bms, src, srcLen, pttrn, pttrnLen, status);
43 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status);
49 return (long)(srcLen/pttrnLen);
51 return (long) srcLen;
59 srcLen = sourceLen;
68 srcLen = sourceLen;
79 int32_t srcLen; member in class:StringSearchPerformanceTest
[all...]
H A Dstrsrchperf.cpp30 src = getBuffer(srcLen, status);
34 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status);
73 targetString = new UnicodeString(src, srcLen);
77 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status);
121 StringSearchPerfFunction *func = new StringSearchPerfFunction(ICUForwardSearch, bms, src, srcLen, pttrn, pttrnLen);
123 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen);
130 StringSearchPerfFunction *func = new StringSearchPerfFunction(ICUBackwardSearch, bms, src, srcLen, pttrn, pttrnLen);
132 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUBackwardSearch, srch, src, srcLen, pttrn, pttrnLen);
/external/icu4c/test/perf/ustrperf/
H A Dstringperf.h56 typedef void (*ICUStringPerfFn)(const UChar* src,int32_t srcLen, UnicodeString s0);
57 typedef void (*StdStringPerfFn)(const wchar_t* src,int32_t srcLen, stlstring s0);
384 inline void ctor(const UChar* src,int32_t srcLen, UnicodeString s0) argument
389 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
394 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
399 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) argument
401 UnicodeString d(src,srcLen);
404 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) argument
406 if (srcLen==-1) { return src;}
407 else { return UnicodeString(src, srcLen);}
410 assign(const UChar* src,int32_t srcLen, UnicodeString s0) argument
415 assign1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
420 assign2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
425 getch(const UChar* src,int32_t srcLen, UnicodeString s0) argument
431 catenate(const UChar* src,int32_t srcLen, UnicodeString s0) argument
448 scan(const UChar* src,int32_t srcLen, UnicodeString s0) argument
454 scan1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
459 scan2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
468 StdLibCtor(const wchar_t* src,int32_t srcLen, stlstring s0) argument
473 StdLibCtor1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
478 StdLibCtor2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
483 StdLibCtor3(const wchar_t* src,int32_t srcLen, stlstring s0) argument
492 stl_assign_helper(const wchar_t* src,int32_t srcLen) argument
498 StdLibAssign(const wchar_t* src,int32_t srcLen, stlstring s0) argument
503 StdLibAssign1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
509 StdLibAssign2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
514 StdLibGetch(const wchar_t* src,int32_t srcLen, stlstring s0) argument
519 StdLibCatenate(const wchar_t* src,int32_t srcLen, stlstring s0) argument
533 StdLibScan(const wchar_t* src,int32_t srcLen, stlstring s0) argument
538 StdLibScan1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
543 StdLibScan2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
[all...]
H A Dstringperf.cpp100 int32_t srcLen = 0; local
101 const UChar* src = getBuffer(srcLen,status);
107 StrBuffer = new UChar[srcLen];
108 StrBufferLen = srcLen;
109 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR);
/external/icu4c/test/perf/convperf/
H A Dconvperf.h28 int32_t srcLen; member in class:ICUToUnicodePerfFunction
36 srcLen = sourceLen;
44 source, srcLen, &status);
57 const char* sourceLimit = src + srcLen;
62 return srcLen;
73 int32_t srcLen; member in class:ICUFromUnicodePerfFunction
82 srcLen = sourceLen;
90 source, srcLen, &status);
103 const UChar* sourceLimit = src + srcLen;
108 return srcLen;
153 UINT srcLen; member in class:WinANSIToUnicodePerfFunction
205 UINT srcLen; member in class:WinANSIFromUnicodePerfFunction
274 UINT srcLen; member in class:WinIMultiLanguageToUnicodePerfFunction
330 UINT srcLen; member in class:WinIMultiLanguageFromUnicodePerfFunction
386 UINT srcLen; member in class:WinIMultiLanguage2ToUnicodePerfFunction
439 UINT srcLen; member in class:WinIMultiLanguage2FromUnicodePerfFunction
[all...]
/external/icu4c/test/cintltst/
H A Dspreptst.c295 unescapeData(const char* src, int32_t srcLen, argument
445 int32_t srcLen; local
452 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status);
457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status);
461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status);
478 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); local
480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status);
505 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); local
508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status);
515 if(destLen != srcLen){
528 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); local
551 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); local
576 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); local
[all...]
H A Dcbiditst.c82 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
1262 int32_t srcLen, destLen, runCount, i; local
1296 srcLen = u_unescape("abc ", src, MAXLEN);
1297 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1308 srcLen = u_unescape("abc def", src, MAXLEN);
1309 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1320 srcLen = u_unescape("abcdefghi ", src, MAXLEN);
1321 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1333 srcLen = u_unescape("\\u200eabc def", src, MAXLEN);
1334 ubidi_setPara(bidi, src, srcLen, UBIDI_RT
1549 int32_t srcLen; local
1696 int32_t srcLen, destLen; local
3460 int32_t srcLen, destLen, vis1Len, vis2Len, option, i, j, nCases, paras; local
3544 int32_t srcLen, destLen, index; local
3648 inverseBasic(UBiDi *pBiDi, const char *srcChars, int32_t srcLen, uint32_t option, UBiDiLevel level, char *result) argument
3712 int32_t srcLen, processedLen, chunk, len, nPortions; local
3841 int32_t srcLen, destLen, textSrcSize = (int32_t)uprv_strlen(textSrc); local
3918 int32_t i, srcLen, resLen, index; local
[all...]
H A Didnatest.c604 int32_t srcLen; local
620 srcLen = u_strlen(src);
622 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE);
625 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
629 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE);
631 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE);
635 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE);
637 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE);
685 int32_t srcLen local
[all...]
H A Dnucnvtst.c3476 unescape(UChar* dst, int32_t dstLen,const char* src,int32_t srcLen,UErrorCode *status){ argument
3482 if((dst==NULL && dstLen>0) || (src==NULL ) || dstLen < -1 || srcLen <-1 ){
3486 if(srcLen==-1){
3487 srcLen = (int32_t)uprv_strlen(src);
3490 for (; srcIndex<srcLen; ) {
3493 c = u_unescapeAt(_charAt,&srcIndex,srcLen,(void*)src); /* advances i*/
3764 int32_t cSrcLen,srcLen; local
3767 cSrcLen = srcLen = (int32_t)uprv_strlen(fTestCases[i]);
3768 src = (UChar*) malloc((sizeof(UChar) * srcLen) + sizeof(UChar));
3769 srcLen
[all...]
H A Dcnormtst.c236 static void TestNull_check(UChar *src, int32_t srcLen, argument
254 len = unorm_normalize(src, srcLen, mode, 0, result, 50, &status);
/external/icu4c/test/intltest/
H A Dtestidna.cpp807 int32_t srcLen = u_strlen(src); //subtract null local
809 testCompare(src,srcLen,src,srcLen,testName, func, TRUE);
812 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
816 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE);
818 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE);
822 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE);
824 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE);
881 int32_t srcLen = u_strlen(start);
882 labelLen = getNextSeperator(start,srcLen,
1000 int32_t srcLen = u_strlen(src); local
1206 int32_t srcLen = u_strlen(src); //subtract null local
1420 testCompareReferenceImpl(const UChar* src, int32_t srcLen) argument
1525 int32_t srcLen = 0; local
[all...]
H A Dtestidna.h100 void testCompareReferenceImpl(const UChar* src, int32_t srcLen);
/external/skia/src/pdf/
H A DSkPDFFont.cpp143 size_t srcLen; local
144 if ((srcLen = srcStream->getLength()) > 0) {
145 staticStream = new SkMemoryStream(srcLen + 1);
149 memcpy((void *)src, srcStream->getMemoryBase(), srcLen);
152 while (read < srcLen) {
154 srcLen - read);
161 ((uint8_t *)src)[srcLen] = 0;
172 srcLen = dynamicStream.getOffset() - 1;
175 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) {
190 if (parsePFA((const char*)src, srcLen, headerLe
[all...]
/external/icu4c/common/
H A Dustring.c1349 const char *src, int32_t srcLen) {
1353 if (srcLen > destCapacity) {
1354 srcLen = destCapacity;
1356 u_charsToUChars(src, dest, srcLen);
1348 _appendUChars(UChar *dest, int32_t destCapacity, const char *src, int32_t srcLen) argument
/external/icu4c/io/
H A Duscanf_p.c493 int32_t srcLen, expLen; local
519 srcLen = unum_getSymbol(format,
528 srcExpBuf, srcLen,
534 srcExpBuf, srcLen,
H A Duprntf_p.c566 int32_t srcLen, expLen; local
585 srcLen = unum_getSymbol(format,
594 srcExpBuf, srcLen,
600 srcExpBuf, srcLen,
658 srcLen,
/external/icu4c/i18n/
H A Duregex.cpp1741 int32_t srcLen) // Source string len.
1747 for (si=0; si<srcLen; si++) {
1753 di += srcLen - si;

Completed in 530 milliseconds