Lines Matching refs:labelLength
179 int32_t labelStart, int32_t labelLength,
184 int32_t labelStart, int32_t labelLength,
188 checkLabelBiDi(const UChar *label, int32_t labelLength, IDNAInfo &info) const;
191 isLabelOkContextJ(const UChar *label, int32_t labelLength) const;
194 checkLabelContextO(const UChar *label, int32_t labelLength, IDNAInfo &info) const;
555 int32_t labelLength=labelLimit-labelStart; in processUnicode() local
556 int32_t newLength=processLabel(dest, labelStart, labelLength, in processUnicode()
564 destLength+=newLength-labelLength; in processUnicode()
676 const UnicodeString &label, int32_t labelLength) { in replaceLabel() argument
680 return labelLength; in replaceLabel()
685 int32_t labelStart, int32_t labelLength, in processLabel() argument
692 int32_t destLabelLength=labelLength; in processLabel()
694 if(labelLength>=4 && label[0]==0x78 && label[1]==0x6e && label[2]==0x2d && label[3]==0x2d) { in processLabel()
701 return labelLength; in processLabel()
704 int32_t unicodeLength=u_strFromPunycode(label+4, labelLength-4, in processLabel()
712 return labelLength; in processLabel()
715 unicodeLength=u_strFromPunycode(label+4, labelLength-4, in processLabel()
722 return markBadACELabel(dest, labelStart, labelLength, toASCII, info); in processLabel()
733 return labelLength; in processLabel()
737 return markBadACELabel(dest, labelStart, labelLength, toASCII, info); in processLabel()
742 labelLength=fromPunycode.length(); in processLabel()
748 if(labelLength==0) { in processLabel()
752 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength); in processLabel()
755 if(labelLength>=4 && label[2]==0x2d && label[3]==0x2d) { in processLabel()
763 if(label[labelLength-1]==0x2d) { in processLabel()
777 const UChar *limit=label+labelLength; in processLabel()
812 labelLength+=1-cpLength; in processLabel()
814 destLabelLength=labelLength; in processLabel()
821 checkLabelBiDi(label, labelLength, info); in processLabel()
824 !isLabelOkContextJ(label, labelLength) in processLabel()
829 checkLabelContextO(label, labelLength, info); in processLabel()
850 int32_t punycodeLength=u_strToPunycode(label, labelLength, in processLabel()
861 punycodeLength=u_strToPunycode(label, labelLength, in processLabel()
877 if(labelLength>63) { in processLabel()
890 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength); in processLabel()
898 int32_t labelStart, int32_t labelLength, in markBadACELabel() argument
906 const UChar *limit=label+labelLength; in markBadACELabel()
926 dest.insert(labelStart+labelLength, (UChar)0xfffd); in markBadACELabel()
927 ++labelLength; in markBadACELabel()
929 if(toASCII && isASCII && labelLength>63) { in markBadACELabel()
933 return labelLength; in markBadACELabel()
962 UTS46::checkLabelBiDi(const UChar *label, int32_t labelLength, IDNAInfo &info) const { in checkLabelBiDi() argument
978 if(i>=labelLength) { in checkLabelBiDi()
982 U16_PREV_UNSAFE(label, labelLength, c); in checkLabelBiDi()
1003 while(i<labelLength) { in checkLabelBiDi()
1111 UTS46::isLabelOkContextJ(const UChar *label, int32_t labelLength) const { in isLabelOkContextJ()
1115 for(int32_t i=0; i<labelLength; ++i) { in isLabelOkContextJ()
1148 if(j==labelLength) { in isLabelOkContextJ()
1181 UTS46::checkLabelContextO(const UChar *label, int32_t labelLength, IDNAInfo &info) const { in checkLabelContextO() argument
1182 int32_t labelEnd=labelLength-1; // inclusive in checkLabelContextO()
1208 U16_NEXT(label, j, labelLength, c); in checkLabelContextO()
1273 U16_NEXT(label, j, labelLength, c); in checkLabelContextO()