/external/icu4c/tools/genrb/ |
rle.h | 40 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);
|
prscmnts.cpp | 35 removeText(UChar *source, int32_t srcLen, 43 UnicodeString src(source, srcLen); 55 return dest.extract(source, srcLen, *status); 59 trim(UChar *src, int32_t srcLen, UErrorCode *status){ 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, "\\s+$", 0, "", status); // remvoe trailing spcae [all...] |
prscmnts.h | 33 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,
|
rle.c | 148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { 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) { 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) { 248 if(srcLen == -1) [all...] |
wrtxml.cpp | 162 static void strnrepchr(char* src, int32_t srcLen, char s, char r){ 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){ 386 int32_t bufCapacity = srcLen*4; 399 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status) [all...] |
wrtjava.c | 229 str_write_java( uint16_t* src, int32_t srcLen, UBool printEndLine, UErrorCode *status){ 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; 455 if(srcLen>0 ) 464 for (;byteIterator<srcLen;byteIterator++)
|
/frameworks/base/media/libdrm/mobile1/include/objmng/ |
drm_decoder.h | 42 * \param srcLen source buffer length, and when return, give out how many bytes has been decoded 49 int32_t drm_decodeBase64(uint8_t * dest, int32_t destLen, uint8_t * src, int32_t * srcLen);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
drm_decoder.c | 40 int32_t drm_decodeBase64(uint8_t * dest, int32_t destLen, uint8_t * src, int32_t * srcLen) 46 if (NULL == src || NULL == srcLen || *srcLen <= 0 || destLen < 0) 49 maxDestSize = (*srcLen) * 3/4; 59 for (i = 0; i < maxGroup && *srcLen - (pSrc - src) >= 4; i++) { 61 if (pSrc - src >= *srcLen) 94 *srcLen = pSrc - src;
|
/external/icu4c/test/perf/normperf/ |
normperf.h | 28 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; 59 retVal = (*fn)(src,srcLen,mode, options, status); 74 return srcLen; 84 srcLen = 0; 94 srcLen = sourceLen; 111 int32_t srcLen; 129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); 143 return srcLen; [all...] |
normperf.cpp | 74 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ 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){ 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; 156 const UChar* src = getBuffer(srcLen,status); 165 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options); 166 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NFC, options) [all...] |
/external/icu4c/test/perf/strsrchperf/ |
strsrchperf.h | 20 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; 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; [all...] |
strsrchperf.cpp | 30 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/ |
stringperf.h | 58 typedef void (*ICUStringPerfFn)(const UChar* src,int32_t srcLen, UnicodeString s0); 59 typedef void (*StdStringPerfFn)(const wchar_t* src,int32_t srcLen, stlstring s0); 386 inline void ctor(const UChar* src,int32_t srcLen, UnicodeString s0) 391 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) 396 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) 401 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) 403 UnicodeString d(src,srcLen); 406 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) 408 if (srcLen==-1) { return src;} 409 else { return UnicodeString(src, srcLen);} [all...] |
stringperf.cpp | 100 int32_t srcLen = 0; 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/ |
convperf.h | 28 int32_t srcLen; 36 srcLen = sourceLen; 44 source, srcLen, &status); 57 const char* sourceLimit = src + srcLen; 62 return srcLen; 73 int32_t srcLen; 82 srcLen = sourceLen; 90 source, srcLen, &status); 103 const UChar* sourceLimit = src + srcLen; 108 return srcLen; [all...] |
/external/icu4c/test/cintltst/ |
spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, 445 int32_t srcLen; 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); 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); 508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 515 if(destLen != srcLen){ [all...] |
cbiditst.c | 86 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, [all...] |
idnatest.c | 604 int32_t srcLen; 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 = u_strlen(src) [all...] |
/build/tools/acp/ |
acp.c | 119 int srcLen; 122 srcLen = strlen(argv[i]); 123 src = malloc(srcLen+1); 124 memcpy(src, argv[i], srcLen+1); 126 if (src[srcLen-1] == FSSEP) 127 src[--srcLen] = '\0';
|
/frameworks/native/include/utils/ |
Unicode.h | 150 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen); 157 char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* src, size_t srcLen, char16_t* dst); 164 void utf8_to_utf16(const uint8_t* src, size_t srcLen, char16_t* dst);
|
/libcore/luni/src/main/java/java/math/ |
BitLevel.java | 114 static void shiftLeftOneBit(int[] result, int[] source, int srcLen) { 116 for (int i = 0; i < srcLen; i++) { 122 result[srcLen] = carry; 128 int srcLen = source.numberLength; 129 int resLen = srcLen + 1; 131 shiftLeftOneBit(resDigits, source.digits, srcLen);
|
/external/icu4c/test/intltest/ |
testidna.cpp | 807 int32_t srcLen = u_strlen(src); //subtract null 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); [all...] |
testidna.h | 100 void testCompareReferenceImpl(const UChar* src, int32_t srcLen);
|
/build/libs/host/ |
CopyFile.c | 484 int srcLen, dstLen, nameLen; 497 srcLen = strlen(src); 500 srcFile = malloc(srcLen +1 + nameLen +1); 501 memcpy(srcFile, src, srcLen); 502 srcFile[srcLen] = FSSEP; 503 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1);
|
/external/skia/src/pdf/ |
SkPDFFont.cpp | 161 size_t srcLen; 162 if ((srcLen = srcStream->getLength()) > 0) { 163 staticStream = new SkMemoryStream(srcLen + 1); 167 memcpy((void *)src, srcStream->getMemoryBase(), srcLen); 170 while (read < srcLen) { 172 srcLen - read); 180 ((uint8_t *)src)[srcLen] = 0; 192 srcLen = data->size() - 1; 199 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { 214 if (parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen [all...] |