Lines Matching refs:srcLength

47 startsWithPrefix(const UChar* src , int32_t srcLength){  in startsWithPrefix()  argument
50 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix()
129 static int32_t convertToPuny(const UChar* src, int32_t srcLength, in convertToPuny() argument
141 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny()
153 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny()
199 static int32_t convertFromPuny( const UChar* src, int32_t srcLength, in convertFromPuny() argument
206 convertUCharsToASCII(src, b1,srcLength); in convertFromPuny()
212 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
220 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
244 idnaref_toASCII(const UChar* src, int32_t srcLength, in idnaref_toASCII() argument
253 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toASCII()
277 if(srcLength == -1){ in idnaref_toASCII()
278 srcLength = u_strlen(src); in idnaref_toASCII()
282 for( j=0;j<srcLength;j++){ in idnaref_toASCII()
296 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status); in idnaref_toASCII()
309 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toASCII()
413 idnaref_toUnicode(const UChar* src, int32_t srcLength, in idnaref_toUnicode() argument
422 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toUnicode()
456 if(srcLength==-1){ in idnaref_toUnicode()
457 srcLength = 0; in idnaref_toUnicode()
458 for(;src[srcLength]!=0;){ in idnaref_toUnicode()
459 if(src[srcLength]> 0x7f){ in idnaref_toUnicode()
461 }if(prep->isLDHChar(src[srcLength])==FALSE){ in idnaref_toUnicode()
466 failPos = srcLength; in idnaref_toUnicode()
468 srcLength++; in idnaref_toUnicode()
471 for(int32_t j=0; j<srcLength; j++){ in idnaref_toUnicode()
486 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status); in idnaref_toUnicode()
498 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toUnicode()
507 if(srcLength < b1Capacity){ in idnaref_toUnicode()
508 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
511 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
516 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
518 b1Len = srcLength; in idnaref_toUnicode()
521 if(startsWithPrefix(src,srcLength)){ in idnaref_toUnicode()
584 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){ in idnaref_toUnicode()
590 uprv_syntaxError(src,failPos, srcLength,parseError); in idnaref_toUnicode()
593 uprv_syntaxError(src,0,srcLength,parseError); in idnaref_toUnicode()
596 … uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError); in idnaref_toUnicode()
603 if(srcLength <= destCapacity){ in idnaref_toUnicode()
604 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
606 reqLength = srcLength; in idnaref_toUnicode()
627 if(dest && srcLength <= destCapacity){ in idnaref_toUnicode()
628 if(srcLength == -1) { in idnaref_toUnicode()
631 uprv_memmove(dest,src,srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
634 reqLength = srcLength; in idnaref_toUnicode()
642 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep, in getNextSeparator() argument
646 if(srcLength == -1){ in getNextSeparator()
662 for(i=0;i<srcLength;i++){ in getNextSeparator()
669 if(i==srcLength){ in getNextSeparator()
670 *limit = src+srcLength; in getNextSeparator()
678 idnaref_IDNToASCII( const UChar* src, int32_t srcLength, in idnaref_IDNToASCII() argument
687 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_IDNToASCII()
703 int32_t remainingLen = srcLength; in idnaref_IDNToASCII()
716 if(srcLength == -1){ in idnaref_IDNToASCII()
771 if(delimiter == src+srcLength){ in idnaref_IDNToASCII()
816 remainingLen = srcLength - (delimiter - src); in idnaref_IDNToASCII()
833 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, in idnaref_IDNToUnicode() argument
842 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_IDNToUnicode()
859 int32_t remainingLen = srcLength; in idnaref_IDNToUnicode()
870 if(srcLength == -1){ in idnaref_IDNToUnicode()
924 if(delimiter == src+srcLength){ in idnaref_IDNToUnicode()
973 remainingLen = srcLength - (delimiter - src); in idnaref_IDNToUnicode()