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;
549 int32_t labelLength=labelLimit-labelStart; in processUnicode() local
550 int32_t newLength=processLabel(dest, labelStart, labelLength, in processUnicode()
558 destLength+=newLength-labelLength; in processUnicode()
687 const UnicodeString &label, int32_t labelLength, UErrorCode &errorCode) { in replaceLabel() argument
698 return labelLength; in replaceLabel()
703 int32_t labelStart, int32_t labelLength, in processLabel() argument
713 int32_t destLabelLength=labelLength; in processLabel()
715 if(labelLength>=4 && label[0]==0x78 && label[1]==0x6e && label[2]==0x2d && label[3]==0x2d) { in processLabel()
723 if(labelLength==4 || (labelLength>5 && label[labelLength-1]==u'-')) { in processLabel()
725 return markBadACELabel(dest, labelStart, labelLength, toASCII, info, errorCode); in processLabel()
732 return labelLength; in processLabel()
735 int32_t unicodeLength=u_strFromPunycode(label+4, labelLength-4, in processLabel()
743 return labelLength; in processLabel()
746 unicodeLength=u_strFromPunycode(label+4, labelLength-4, in processLabel()
753 return markBadACELabel(dest, labelStart, labelLength, toASCII, info, errorCode); in processLabel()
764 return labelLength; in processLabel()
768 return markBadACELabel(dest, labelStart, labelLength, toASCII, info, errorCode); in processLabel()
773 labelLength=fromPunycode.length(); in processLabel()
779 if(labelLength==0) { in processLabel()
782 *labelString, labelLength, errorCode); in processLabel()
785 if(labelLength>=4 && label[2]==0x2d && label[3]==0x2d) { in processLabel()
793 if(label[labelLength-1]==0x2d) { in processLabel()
807 const UChar *limit=label+labelLength; in processLabel()
842 labelLength+=1-cpLength; in processLabel()
844 destLabelLength=labelLength; in processLabel()
851 checkLabelBiDi(label, labelLength, info); in processLabel()
854 !isLabelOkContextJ(label, labelLength) in processLabel()
859 checkLabelContextO(label, labelLength, info); in processLabel()
880 int32_t punycodeLength=u_strToPunycode(label, labelLength, in processLabel()
891 punycodeLength=u_strToPunycode(label, labelLength, in processLabel()
907 if(labelLength>63) { in processLabel()
921 *labelString, labelLength, errorCode); in processLabel()
929 int32_t labelStart, int32_t labelLength, in markBadACELabel() argument
938 const UChar *limit=label+labelLength; in markBadACELabel()
960 dest.insert(labelStart+labelLength, (UChar)0xfffd); in markBadACELabel()
965 ++labelLength; in markBadACELabel()
967 if(toASCII && isASCII && labelLength>63) { in markBadACELabel()
971 return labelLength; in markBadACELabel()
1000 UTS46::checkLabelBiDi(const UChar *label, int32_t labelLength, IDNAInfo &info) const { in checkLabelBiDi() argument
1016 if(i>=labelLength) { in checkLabelBiDi()
1020 U16_PREV_UNSAFE(label, labelLength, c); in checkLabelBiDi()
1041 while(i<labelLength) { in checkLabelBiDi()
1149 UTS46::isLabelOkContextJ(const UChar *label, int32_t labelLength) const { in isLabelOkContextJ()
1152 for(int32_t i=0; i<labelLength; ++i) { in isLabelOkContextJ()
1185 if(j==labelLength) { in isLabelOkContextJ()
1218 UTS46::checkLabelContextO(const UChar *label, int32_t labelLength, IDNAInfo &info) const { in checkLabelContextO() argument
1219 int32_t labelEnd=labelLength-1; // inclusive in checkLabelContextO()
1245 U16_NEXT(label, j, labelLength, c); in checkLabelContextO()
1310 U16_NEXT(label, j, labelLength, c); in checkLabelContextO()