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;
557 int32_t labelLength=labelLimit-labelStart;
558 int32_t newLength=processLabel(dest, labelStart, labelLength,
566 destLength+=newLength-labelLength;
588 // processLabel() sets UIDNA_ERROR_EMPTY_LABEL when labelLength==0.
672 // If &label==&dest then the label was modified in-place and labelLength
674 // If &label!=&dest then labelLength==label.length().
675 // Returns labelLength (= the new label length).
678 const UnicodeString &label, int32_t labelLength) {
682 return labelLength;
687 int32_t labelStart, int32_t labelLength,
694 int32_t destLabelLength=labelLength;
696 if(labelLength>=4 && label[0]==0x78 && label[1]==0x6e && label[2]==0x2d && label[3]==0x2d) {
703 return labelLength;
706 int32_t unicodeLength=u_strFromPunycode(label+4, labelLength-4,
714 return labelLength;
717 unicodeLength=u_strFromPunycode(label+4, labelLength-4,
724 return markBadACELabel(dest, labelStart, labelLength, toASCII, info);
735 return labelLength;
739 return markBadACELabel(dest, labelStart, labelLength, toASCII, info);
744 labelLength=fromPunycode.length();
750 if(labelLength==0) {
754 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength);
756 // labelLength>0
757 if(labelLength>=4 && label[2]==0x2d && label[3]==0x2d) {
765 if(label[labelLength-1]==0x2d) {
779 const UChar *limit=label+labelLength;
814 labelLength+=1-cpLength;
816 destLabelLength=labelLength;
823 checkLabelBiDi(label, labelLength, info);
826 !isLabelOkContextJ(label, labelLength)
831 checkLabelContextO(label, labelLength, info);
852 int32_t punycodeLength=u_strToPunycode(label, labelLength,
863 punycodeLength=u_strToPunycode(label, labelLength,
879 if(labelLength>63) {
892 return replaceLabel(dest, destLabelStart, destLabelLength, *labelString, labelLength);
900 int32_t labelStart, int32_t labelLength,
908 const UChar *limit=label+labelLength;
928 dest.insert(labelStart+labelLength, (UChar)0xfffd);
929 ++labelLength;
931 if(toASCII && isASCII && labelLength>63) {
935 return labelLength;
964 UTS46::checkLabelBiDi(const UChar *label, int32_t labelLength, IDNAInfo &info) const {
980 if(i>=labelLength) {
984 U16_PREV_UNSAFE(label, labelLength, c);
1005 while(i<labelLength) {
1113 UTS46::isLabelOkContextJ(const UChar *label, int32_t labelLength) const {
1117 for(int32_t i=0; i<labelLength; ++i) {
1150 if(j==labelLength) {
1183 UTS46::checkLabelContextO(const UChar *label, int32_t labelLength, IDNAInfo &info) const {
1184 int32_t labelEnd=labelLength-1; // inclusive
1210 U16_NEXT(label, j, labelLength, c);
1275 U16_NEXT(label, j, labelLength, c);