Lines Matching refs:ModifierLen
396 static bool ModifierIs(const char *Modifier, unsigned ModifierLen, in ModifierIs() argument
398 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs()
668 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local
676 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
697 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic()
730 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
736 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
749 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
752 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
754 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
757 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
760 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
768 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
770 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
772 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
775 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
778 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
786 assert(ModifierLen == 0 && "No modifiers for token kinds yet"); in FormatDiagnostic()
808 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
827 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
851 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
874 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
888 StringRef(Modifier, ModifierLen), in FormatDiagnostic()