Home
last modified time | relevance | path

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

/external/icu/icu4c/source/common/
Dushape.cpp633 calculateSize(const UChar *source, int32_t sourceLength, in calculateSize() argument
640 destSize = sourceLength; in calculateSize()
654 for(i=0;i<sourceLength;i++) { in calculateSize()
655 …if( ((isAlefChar(source[i]))&& (i<(sourceLength-1)) &&(source[i+1] == LAM_CHAR)) || (isTashkeelCha… in calculateSize()
660 for(i=0;i<sourceLength;i++) { in calculateSize()
661 …if( ( (source[i] == LAM_CHAR) && (i<(sourceLength-1)) && (isAlefChar(source[i+1]))) || (isTashkeel… in calculateSize()
670 for(i=0;i<sourceLength;i++) { in calculateSize()
690 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength, in handleTashkeelWithTatweel() argument
694 for(i = 0; i < sourceLength; i++){ in handleTashkeelWithTatweel()
703 return sourceLength; in handleTashkeelWithTatweel()
[all …]
Ducnv.c2415 const char *source, int32_t sourceLength, in ucnv_internalConvert() argument
2426 if(sourceLength<0) { in ucnv_internalConvert()
2429 sourceLimit=source+sourceLength; in ucnv_internalConvert()
2488 const char *source, int32_t sourceLength, in ucnv_convert() argument
2498 if( source==NULL || sourceLength<-1 || in ucnv_convert()
2506 if(sourceLength==0 || (sourceLength<0 && *source==0)) { in ucnv_convert()
2524 source, sourceLength, in ucnv_convert()
2539 const char *source, int32_t sourceLength, in ucnv_convertAlgorithmic() argument
2549 if( cnv==NULL || source==NULL || sourceLength<-1 || in ucnv_convertAlgorithmic()
2557 if(sourceLength==0 || (sourceLength<0 && *source==0)) { in ucnv_convertAlgorithmic()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetASCII.java62 int sourceLength = source.limit() - oldSource; in decodeLoop() local
69 int limit = ((sourceLength < targetLength) ? sourceLength : targetLength) in decodeLoop()
79 if (sourceLength <= targetLength) { in decodeLoop()
80 source.position(oldSource + sourceLength); in decodeLoop()
81 target.position(oldTarget + sourceLength); in decodeLoop()
218 int sourceLength = source.limit() - oldSource; in encodeLoop() local
225 int limit = ((sourceLength < targetLength) ? sourceLength : targetLength) in encodeLoop()
235 if (sourceLength <= targetLength) { in encodeLoop()
236 source.position(oldSource + sourceLength); in encodeLoop()
237 target.position(oldTarget + sourceLength); in encodeLoop()
/external/icu/icu4c/source/i18n/
Ducol.cpp191 int32_t sourceLength, in ucol_getSortKey() argument
198 ((sourceLength==-1 && source!=NULL) ? u_strlen(source) : sourceLength)); in ucol_getSortKey()
202 getSortKey(source, sourceLength, result, resultLength); in ucol_getSortKey()
239 int32_t sourceLength, in ucol_getBound() argument
263 && (source[sourceIndex] != 0 || sourceIndex < sourceLength)); in ucol_getBound()
265 if((source[sourceIndex] == 0 || sourceIndex == sourceLength) in ucol_getBound()
440 int32_t sourceLength, in ucol_strcoll() argument
449 UTRACE_DATA2(UTRACE_VERBOSE, "source string = %vh ", source, sourceLength); in ucol_strcoll()
455 compare(source, sourceLength, target, targetLength, status); in ucol_strcoll()
464 int32_t sourceLength, in ucol_strcollUTF8() argument
[all …]
Dumsg.cpp148 int32_t sourceLength, in u_parseMessage() argument
158 u_vparseMessage(locale,pattern,patternLength,source,sourceLength,ap,status); in u_parseMessage()
168 int32_t sourceLength, in u_vparseMessage() argument
175 umsg_vparse(fmt,source,sourceLength,&count,ap,status); in u_vparseMessage()
184 int32_t sourceLength, in u_parseMessageWithError() argument
196 u_vparseMessageWithError(locale,pattern,patternLength,source,sourceLength,ap,error,status); in u_parseMessageWithError()
205 int32_t sourceLength, in u_vparseMessageWithError() argument
213 umsg_vparse(fmt,source,sourceLength,&count,ap,status); in u_vparseMessageWithError()
489 int32_t sourceLength, in umsg_parse() argument
502 umsg_vparse(fmt,source,sourceLength,count,ap,status); in umsg_parse()
[all …]
Dcoll.cpp499 Collator::EComparisonResult Collator::compare(const UChar* source, int32_t sourceLength, in compare() argument
504 return (EComparisonResult)compare(source, sourceLength, target, targetLength, ec); in compare()
642 int32_t sourceLength, in getBound() argument
649 … return ucol_getBound(source, sourceLength, boundType, noOfLevels, result, resultLength, &status); in getBound()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DArabicShaping.java86 public int shape(char[] source, int sourceStart, int sourceLength, in shape() argument
91 if (sourceStart < 0 || sourceLength < 0 || sourceStart + sourceLength > source.length) { in shape()
93 ") or length (" + sourceLength + in shape()
130 return internalShape(source, sourceStart, sourceLength, dest, destStart, destSize); in shape()
1150 int sourceLength) { in calculateSize() argument
1152 int destSize = sourceLength; in calculateSize()
1158 for (int i = sourceStart, e = sourceStart + sourceLength - 1; i < e; ++i) { in calculateSize()
1164 for(int i = sourceStart + 1, e = sourceStart + sourceLength; i < e; ++i) { in calculateSize()
1173 for(int i = sourceStart, e = sourceStart + sourceLength; i < e; ++i) { in calculateSize()
1250 private static int handleTashkeelWithTatweel(char[] dest, int sourceLength) { in handleTashkeelWithTatweel() argument
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dumsg.h233 int32_t sourceLength,
258 int32_t sourceLength,
344 int32_t sourceLength,
372 int32_t sourceLength,
562 int32_t sourceLength,
585 int32_t sourceLength,
Ducol.h551 int32_t sourceLength,
577 int32_t sourceLength,
598 const UChar *source, int32_t sourceLength,
617 const UChar *source, int32_t sourceLength,
636 const UChar *source, int32_t sourceLength,
1007 int32_t sourceLength,
1095 int32_t sourceLength,
Dcoll.h418 virtual EComparisonResult compare(const UChar* source, int32_t sourceLength,
438 virtual UCollationResult compare(const UChar* source, int32_t sourceLength,
516 int32_t sourceLength,
1018 virtual int32_t getSortKey(const UChar*source, int32_t sourceLength,
1059 int32_t sourceLength,
Dtblcoll.h309 virtual UCollationResult compare(const UChar* source, int32_t sourceLength,
379 int32_t sourceLength,
647 virtual int32_t getSortKey(const UChar *source, int32_t sourceLength,
/external/v8/src/
Dtypedarray.js190 function TypedArraySetFromArrayLike(target, source, sourceLength, offset) { argument
192 for (var i = 0; i < sourceLength; i++) {
197 for (var i = 0; i < sourceLength; i++) {
206 var sourceLength = source.length;
216 leftIndex < sourceLength && targetPtr <= sourcePtr;
230 target.byteOffset + (offset + sourceLength - 1) * targetElementSize;
234 source.byteOffset + sourceLength * sourceElementSize;
235 for(var rightIndex = sourceLength - 1;
Dd8.js1610 result += body[i].sourceLength;
Dmirror-debugger.js2653 content.sourceLength = mirror.source().length;
/external/skia/src/gpu/gl/builders/
DGrGLShaderStringBuilder.cpp38 GrGLint sourceLength = static_cast<GrGLint>(prettySource.size()); in GrGLCompileAndAttachShader() local
39 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &sourceStr, &sourceLength)); in GrGLCompileAndAttachShader()
/external/icu/icu4c/source/common/unicode/
Ducnv.h1564 int32_t sourceLength,
1616 const char *source, int32_t sourceLength,
1668 const char *source, int32_t sourceLength,
1983 int32_t sourceLength,
Dushape.h100 u_shapeArabic(const UChar *source, int32_t sourceLength,
Dunorm.h207 unorm_normalize(const UChar *source, int32_t sourceLength,
/external/deqp/modules/gles2/functional/
Des2fShaderStateQueryTests.cpp663 StateQueryMemoryWriteGuard<GLint> sourceLength; in test() local
664 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &sourceLength); in test()
666 sourceLength.verifyValidity(m_testCtx); in test()
669 if (sourceLength != referenceLength) in test()
671 …age << "// ERROR: Expected length " << referenceLength << "; got " << sourceLength << TestLog::End… in test()
683 StateQueryMemoryWriteGuard<GLint> sourceLength; in test() local
684 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &sourceLength); in test()
686 sourceLength.verifyValidity(m_testCtx); in test()
689 if (sourceLength != referenceLength) in test()
691 …age << "// ERROR: Expected length " << referenceLength << "; got " << sourceLength << TestLog::End… in test()
Des2fShaderApiTests.cpp562 GLint sourceLength = 0; in getSourceLength() local
563 glGetShaderiv(shader.getShader(), GL_SHADER_SOURCE_LENGTH, &sourceLength); in getSourceLength()
566 return sourceLength; in getSourceLength()
571 const GLint sourceLength = getSourceLength(shader); in readSource() local
572 std::vector<char> sourceBuffer (sourceLength + 1); in readSource()
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp1984 int32_t sourceLength,
1992 int32_t sourceLength,
2014 virtual int32_t getSortKey(const UChar*source, int32_t sourceLength,
2066 int32_t sourceLength, in compare() argument
2071 UnicodeString s(source, sourceLength); in compare()
2090 int32_t sourceLength, in getCollationKey() argument
2095 UnicodeString str(source, sourceLength); in getCollationKey()
2109 int32_t TestCollator::getSortKey(const UChar*source, int32_t sourceLength, in getSortKey() argument
2112 UnicodeString str(source, sourceLength); in getSortKey()
/external/deqp/modules/gles3/functional/
Des3fShaderStateQueryTests.cpp825 StateQueryMemoryWriteGuard<GLint> sourceLength; in test() local
826 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &sourceLength); in test()
828 sourceLength.verifyValidity(m_testCtx); in test()
831 if (sourceLength != referenceLength) in test()
833 …age << "// ERROR: Expected length " << referenceLength << "; got " << sourceLength << TestLog::End… in test()
845 StateQueryMemoryWriteGuard<GLint> sourceLength; in test() local
846 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &sourceLength); in test()
848 sourceLength.verifyValidity(m_testCtx); in test()
851 if (sourceLength != referenceLength) in test()
853 …age << "// ERROR: Expected length " << referenceLength << "; got " << sourceLength << TestLog::End… in test()
Des3fShaderApiTests.cpp619 GLint sourceLength = 0; in getSourceLength() local
620 glGetShaderiv(shader.getShader(), GL_SHADER_SOURCE_LENGTH, &sourceLength); in getSourceLength()
623 return sourceLength; in getSourceLength()
628 const GLint sourceLength = getSourceLength(shader); in readSource() local
629 std::vector<char> sourceBuffer (sourceLength + 1); in readSource()
/external/icu/icu4c/source/test/cintltst/
Dcmsgtst.c928 UChar* source, int32_t sourceLength, UErrorCode *status, ...) in CallParseMessage() argument
932 u_vparseMessage(locale, pattern, patternLength, source, sourceLength, ap, status); in CallParseMessage()
Dnucnvtst.c1781 int32_t sourceLength=-1; in TestSignatureDetection() local
1787 sourceLength = len[i]; in TestSignatureDetection()
1788 enc = ucnv_detectUnicodeSignature(source, sourceLength , &signatureLength, &err); in TestSignatureDetection()