Lines Matching refs:src
59 startsWithPrefix(const char16_t* src , int32_t srcLength){
65 if(toASCIILower(src[i]) != ACE_PREFIX[i]){
145 getNextSeparator(char16_t *src, int32_t srcLength,
150 if(src[i] == 0){
151 *limit = src + i; // point to null
155 if(isLabelSeparator(src[i])){
156 *limit = src + (i+1); // go past the delimiter
164 if(isLabelSeparator(src[i])){
165 *limit = src + (i+1); // go past the delimiter
171 *limit = src+srcLength;
194 _internal_toASCII(const char16_t* src, int32_t srcLength,
227 srcLength = u_strlen(src);
241 if(src[j] > 0x7F){
244 b1[b1Len++] = src[j];
251 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
267 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
394 _internal_toUnicode(const char16_t* src, int32_t srcLength,
423 // step 1: find out if all the codepoints in src are ASCII
426 for(;src[srcLength]!=0;){
427 if(src[srcLength]> 0x7f){
429 }/*else if(isLDHChar(src[srcLength])==false){
440 if(src[j]> 0x7f){
443 }/*else if(isLDHChar(src[j])==false){
457 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Capacity, namePrepOptions, parseError, status);
469 b1Len = usprep_prepare(nameprep, src, srcLength, b1, b1Len, namePrepOptions, parseError, status);
477 //just point src to b1
478 b1 = (char16_t*) src;
553 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
559 uprv_syntaxError(src,failPos, srcLength,parseError);
560 }else if(src[0] == HYPHEN){
562 uprv_syntaxError(src,0,srcLength,parseError);
565 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
574 u_memmove(dest, src, srcLength);
582 if(b1 != b1Stack && b1!=src){
601 u_memmove(dest, src, srcLength);
611 uidna_toASCII(const char16_t* src, int32_t srcLength,
620 if((src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
631 int32_t retLen = _internal_toASCII(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
640 uidna_toUnicode(const char16_t* src, int32_t srcLength,
649 if( (src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
660 int32_t retLen = _internal_toUnicode(src, srcLength, dest, destCapacity, options, nameprep, parseError, status);
669 uidna_IDNToASCII( const char16_t *src, int32_t srcLength,
678 if((src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
692 char16_t *delimiter = (char16_t*)src;
693 char16_t *labelStart = (char16_t*)src;
747 remainingLen = (int32_t)(srcLength - (delimiter - src));
762 uidna_IDNToUnicode( const char16_t* src, int32_t srcLength,
771 if((src==nullptr) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
785 char16_t *delimiter = (char16_t*)src;
786 char16_t *labelStart = (char16_t*)src;
846 remainingLen = (int32_t)(srcLength - (delimiter - src));