Lines Matching refs:srcLength
49 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument
52 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix()
131 static int32_t convertToPuny(const UChar* src, int32_t srcLength, in convertToPuny() argument
143 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny()
155 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny()
201 static int32_t convertFromPuny( const UChar* src, int32_t srcLength, in convertFromPuny() argument
208 convertUCharsToASCII(src, b1,srcLength); in convertFromPuny()
214 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
222 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
246 idnaref_toASCII(const UChar* src, int32_t srcLength, in idnaref_toASCII() argument
255 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toASCII()
279 if(srcLength == -1){ in idnaref_toASCII()
280 srcLength = u_strlen(src); in idnaref_toASCII()
284 for( j=0;j<srcLength;j++){ in idnaref_toASCII()
298 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status); in idnaref_toASCII()
311 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toASCII()
415 idnaref_toUnicode(const UChar* src, int32_t srcLength, in idnaref_toUnicode() argument
424 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toUnicode()
458 if(srcLength==-1){ in idnaref_toUnicode()
459 srcLength = 0; in idnaref_toUnicode()
460 for(;src[srcLength]!=0;){ in idnaref_toUnicode()
461 if(src[srcLength]> 0x7f){ in idnaref_toUnicode()
463 }if(prep->isLDHChar(src[srcLength])==FALSE){ in idnaref_toUnicode()
468 failPos = srcLength; in idnaref_toUnicode()
470 srcLength++; in idnaref_toUnicode()
473 for(int32_t j=0; j<srcLength; j++){ in idnaref_toUnicode()
488 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status); in idnaref_toUnicode()
500 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status); in idnaref_toUnicode()
509 if(srcLength < b1Capacity){ in idnaref_toUnicode()
510 u_memmove(b1, src, srcLength); in idnaref_toUnicode()
513 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
518 u_memmove(b1, src, srcLength); in idnaref_toUnicode()
520 b1Len = srcLength; in idnaref_toUnicode()
523 if(startsWithPrefix(src,srcLength)){ in idnaref_toUnicode()
586 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){ in idnaref_toUnicode()
592 uprv_syntaxError(src,failPos, srcLength,parseError); in idnaref_toUnicode()
595 uprv_syntaxError(src,0,srcLength,parseError); in idnaref_toUnicode()
598 … uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError); in idnaref_toUnicode()
605 if(srcLength <= destCapacity){ in idnaref_toUnicode()
606 u_memmove(dest, src, srcLength); in idnaref_toUnicode()
608 reqLength = srcLength; in idnaref_toUnicode()
629 if(dest && srcLength <= destCapacity){ in idnaref_toUnicode()
630 if(srcLength == -1) { in idnaref_toUnicode()
633 u_memmove(dest, src, srcLength); in idnaref_toUnicode()
636 reqLength = srcLength; in idnaref_toUnicode()
644 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep, in getNextSeparator() argument
648 if(srcLength == -1){ in getNextSeparator()
664 for(i=0;i<srcLength;i++){ in getNextSeparator()
671 if(i==srcLength){ in getNextSeparator()
672 *limit = src+srcLength; in getNextSeparator()
680 idnaref_IDNToASCII( const UChar* src, int32_t srcLength, in idnaref_IDNToASCII() argument
689 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_IDNToASCII()
705 int32_t remainingLen = srcLength; in idnaref_IDNToASCII()
718 if(srcLength == -1){ in idnaref_IDNToASCII()
773 if(delimiter == src+srcLength){ in idnaref_IDNToASCII()
818 remainingLen = srcLength - (delimiter - src); in idnaref_IDNToASCII()
835 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, in idnaref_IDNToUnicode() argument
844 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_IDNToUnicode()
861 int32_t remainingLen = srcLength; in idnaref_IDNToUnicode()
872 if(srcLength == -1){ in idnaref_IDNToUnicode()
926 if(delimiter == src+srcLength){ in idnaref_IDNToUnicode()
975 remainingLen = srcLength - (delimiter - src); in idnaref_IDNToUnicode()