Lines Matching refs:srcLength
49 startsWithPrefix(const UChar* src , int32_t srcLength){
52 if(srcLength < ACE_PREFIX_LENGTH){
131 static int32_t convertToPuny(const UChar* src, int32_t srcLength,
143 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status);
155 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status);
212 static int32_t convertFromPuny( const UChar* src, int32_t srcLength,
219 convertUCharsToASCII(src, b1,srcLength);
224 unsigned char* caseFlags = NULL; //(unsigned char*) uprv_malloc(srcLength * sizeof(unsigned char*));
225 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags);
233 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags);
257 idnaref_toASCII(const UChar* src, int32_t srcLength,
266 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
290 if(srcLength == -1){
291 srcLength = u_strlen(src);
295 for( j=0;j<srcLength;j++){
309 b1Len = prep->process(src,srcLength,b1, b1Capacity,allowUnassigned,parseError,*status);
322 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
426 idnaref_toUnicode(const UChar* src, int32_t srcLength,
435 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
469 if(srcLength==-1){
470 srcLength = 0;
471 for(;src[srcLength]!=0;){
472 if(src[srcLength]> 0x7f){
474 }if(prep->isLDHChar(src[srcLength])==false){
479 failPos = srcLength;
481 srcLength++;
484 for(int32_t j=0; j<srcLength; j++){
499 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status);
511 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
520 if(srcLength < b1Capacity){
521 u_memmove(b1, src, srcLength);
524 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR);
529 u_memmove(b1, src, srcLength);
531 b1Len = srcLength;
534 if(startsWithPrefix(src,srcLength)){
597 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
603 uprv_syntaxError(src,failPos, srcLength,parseError);
606 uprv_syntaxError(src,0,srcLength,parseError);
609 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
616 if(srcLength <= destCapacity){
617 u_memmove(dest, src, srcLength);
619 reqLength = srcLength;
640 if(dest && srcLength <= destCapacity){
641 if(srcLength == -1) {
644 u_memmove(dest, src, srcLength);
647 reqLength = srcLength;
655 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep,
659 if(srcLength == -1){
675 for(i=0;i<srcLength;i++){
682 if(i==srcLength){
683 *limit = src+srcLength;
691 idnaref_IDNToASCII( const UChar* src, int32_t srcLength,
700 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
716 int32_t remainingLen = srcLength;
729 if(srcLength == -1){
784 if(delimiter == src+srcLength){
829 remainingLen = static_cast<int32_t>(srcLength - (delimiter - src));
846 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength,
855 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
872 int32_t remainingLen = srcLength;
883 if(srcLength == -1){
937 if(delimiter == src+srcLength){
986 remainingLen = static_cast<int32_t>(srcLength - (delimiter - src));