Lines Matching refs:ModifierLen
412 static bool ModifierIs(const char *Modifier, unsigned ModifierLen, in ModifierIs() argument
414 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs()
699 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local
707 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
728 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic()
761 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
767 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
780 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
783 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
785 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
788 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
791 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
799 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
801 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
803 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
806 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
809 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
817 assert(ModifierLen == 0 && "No modifiers for token kinds yet"); in FormatDiagnostic()
839 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
858 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
882 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
905 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
919 StringRef(Modifier, ModifierLen), in FormatDiagnostic()