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;
556 int32_t newLength=processLabel(dest, labelStart, labelLength,
564 destLength+=newLength-labelLength;
586 // processLabel() sets UIDNA_ERROR_EMPTY_LABEL when labelLength==0.
670 // If &label==&dest then the label was modified in-place and labelLength
672 // If &label!=&dest then labelLength==label.length().
673 // Returns labelLength (= the new label length).
676 const UnicodeString &label, int32_t labelLength) {
680 return labelLength;
685 int32_t labelStart, int32_t labelLength,
692 int32_t destLabelLength=labelLength;
694 if(labelLength>=4 && label[0]==0x78 && label[1]==0x6e && label[2]==0x2d && label[3]==0x2d) {
701 return labelLength;
704 int32_t unicodeLength=u_strFromPunycode(label+4, labelLength-4,
712 return labelLength;
715 unicodeLength=u_strFromPunycode(label+4, labelLength-4,
722 return markBadACELabel(dest, labelStart, labelLength, toASCII, info);
733 return labelLength;
737 return markBadACELabel(dest, labelStart, labelLength, toASCII, info);
742 labelLength=fromPunycode.length();
748 if(labelLength==0) {
752 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength);
754 // labelLength>0
755 if(labelLength>=4 && label[2]==0x2d && label[3]==0x2d) {
763 if(label[labelLength-1]==0x2d) {
777 const UChar *limit=label+labelLength;
812 labelLength+=1-cpLength;
814 destLabelLength=labelLength;
821 checkLabelBiDi(label, labelLength, info);
824 !isLabelOkContextJ(label, labelLength)
829 checkLabelContextO(label, labelLength, info);
850 int32_t punycodeLength=u_strToPunycode(label, labelLength,
861 punycodeLength=u_strToPunycode(label, labelLength,
877 if(labelLength>63) {
890 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength);
898 int32_t labelStart, int32_t labelLength,
906 const UChar *limit=label+labelLength;
926 dest.insert(labelStart+labelLength, (UChar)0xfffd);
927 ++labelLength;
929 if(toASCII && isASCII && labelLength>63) {
933 return labelLength;
962 UTS46::checkLabelBiDi(const UChar *label, int32_t labelLength, IDNAInfo &info) const {
978 if(i>=labelLength) {
982 U16_PREV_UNSAFE(label, labelLength, c);
1003 while(i<labelLength) {
1111 UTS46::isLabelOkContextJ(const UChar *label, int32_t labelLength) const {
1115 for(int32_t i=0; i<labelLength; ++i) {
1148 if(j==labelLength) {
1181 UTS46::checkLabelContextO(const UChar *label, int32_t labelLength, IDNAInfo &info) const {
1182 int32_t labelEnd=labelLength-1; // inclusive
1208 U16_NEXT(label, j, labelLength, c);
1273 U16_NEXT(label, j, labelLength, c);