Lines Matching defs:RichText
1254 mDNSexport mDNSBool LabelContainsSuffix(const domainlabel *const name, const mDNSBool RichText)
1258 if (RichText)
1280 mDNSexport mDNSu32 RemoveLabelSuffix(domainlabel *name, mDNSBool RichText)
1284 // Chop closing parentheses from RichText suffix
1285 if (RichText && name->c[0] >= 1 && name->c[name->c[0]] == ')') name->c[0]--;
1292 if (RichText)
1306 mDNSexport void AppendLabelSuffix(domainlabel *const name, mDNSu32 val, const mDNSBool RichText)
1309 if (RichText) chars = 4; // Shortest possible RichText suffix is 4 characters (" (2)")
1311 // Truncate trailing spaces from RichText names
1312 if (RichText) while (name->c[name->c[0]] == ' ') name->c[0]--;
1318 if (RichText) { name->c[++name->c[0]] = ' '; name->c[++name->c[0]] = '('; }
1328 if (RichText) name->c[++name->c[0]] = ')';
1331 mDNSexport void IncrementLabelSuffix(domainlabel *name, mDNSBool RichText)
1335 if (LabelContainsSuffix(name, RichText))
1336 val = RemoveLabelSuffix(name, RichText);
1346 AppendLabelSuffix(name, val, RichText);