Lines Matching refs:src

49 startsWithPrefix(const UChar* src , int32_t srcLength){
57 if(u_tolower(src[i]) != ACE_PREFIX[i]){
116 static inline int32_t convertASCIIToUChars(const char* src,UChar* dest, int32_t length){
119 dest[i] = src[i];
123 static inline int32_t convertUCharsToASCII(const UChar* src,char* dest, int32_t length){
126 dest[i] = (char)src[i];
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);
257 idnaref_toASCII(const UChar* src, int32_t srcLength,
266 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
291 srcLength = u_strlen(src);
296 if(src[j] > 0x7F){
299 b1[b1Len++] = src[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)){
468 // step 1: find out if all the codepoints in src are ASCII
471 for(;src[srcLength]!=0;){
472 if(src[srcLength]> 0x7f){
474 }if(prep->isLDHChar(src[srcLength])==false){
485 if(src[j]> 0x7f){
487 }else if(prep->isLDHChar(src[j])==false){
499 b1Len = prep->process(src,srcLength,b1,b1Capacity,allowUnassigned, parseError, *status);
511 b1Len = prep->process(src,srcLength,b1, b1Len,allowUnassigned, parseError, *status);
521 u_memmove(b1, src, srcLength);
529 u_memmove(b1, src, srcLength);
534 if(startsWithPrefix(src,srcLength)){
597 || src[0] == HYPHEN || src[srcLength-1] == HYPHEN){
603 uprv_syntaxError(src,failPos, srcLength,parseError);
604 }else if(src[0] == HYPHEN){
606 uprv_syntaxError(src,0,srcLength,parseError);
609 uprv_syntaxError(src, (srcLength>0) ? srcLength-1 : srcLength, srcLength,parseError);
617 u_memmove(dest, src, srcLength);
642 u_memmove(dest, src, u_strlen(src));
644 u_memmove(dest, src, srcLength);
655 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep,
662 if(src[i] == 0){
663 *limit = src + i; // point to null
667 if(prep->isLabelSeparator(src[i],*status)){
668 *limit = src + (i+1); // go past the delimiter
676 if(prep->isLabelSeparator(src[i],*status)){
677 *limit = src + (i+1); // go past the delimiter
683 *limit = src+srcLength;
691 idnaref_IDNToASCII( const UChar* src, int32_t srcLength,
700 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){
714 UChar* delimiter = (UChar*)src;
715 UChar* labelStart = (UChar*)src;
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)){
870 UChar* delimiter = (UChar*)src;
871 UChar* labelStart = (UChar*)src;
937 if(delimiter == src+srcLength){
986 remainingLen = static_cast<int32_t>(srcLength - (delimiter - src));