Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:RichText

888 mDNSexport mDNSBool LabelContainsSuffix(const domainlabel *const name, const mDNSBool RichText)
892 if (RichText)
914 mDNSexport mDNSu32 RemoveLabelSuffix(domainlabel *name, mDNSBool RichText)
918 // Chop closing parentheses from RichText suffix
919 if (RichText && name->c[0] >= 1 && name->c[name->c[0]] == ')') name->c[0]--;
926 if (RichText)
940 mDNSexport void AppendLabelSuffix(domainlabel *const name, mDNSu32 val, const mDNSBool RichText)
943 if (RichText) chars = 4; // Shortest possible RichText suffix is 4 characters (" (2)")
945 // Truncate trailing spaces from RichText names
946 if (RichText) while (name->c[name->c[0]] == ' ') name->c[0]--;
952 if (RichText) { name->c[++name->c[0]] = ' '; name->c[++name->c[0]] = '('; }
962 if (RichText) name->c[++name->c[0]] = ')';
965 mDNSexport void IncrementLabelSuffix(domainlabel *name, mDNSBool RichText)
969 if (LabelContainsSuffix(name, RichText))
970 val = RemoveLabelSuffix(name, RichText);
980 AppendLabelSuffix(name, val, RichText);