Lines Matching refs:ModifierLen

398 static bool ModifierIs(const char *Modifier, unsigned ModifierLen,  in ModifierIs()  argument
400 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs()
685 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local
693 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
714 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic()
747 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
753 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
766 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
769 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
771 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
774 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
777 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
785 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
787 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
789 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
792 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
795 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
803 assert(ModifierLen == 0 && "No modifiers for token kinds yet"); in FormatDiagnostic()
825 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
844 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
868 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
891 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
905 StringRef(Modifier, ModifierLen), in FormatDiagnostic()