Lines Matching refs:ModifierLen
560 static bool ModifierIs(const char *Modifier, unsigned ModifierLen, in ModifierIs() argument
562 return StrLen-1 == ModifierLen && memcmp(Modifier, Str, StrLen-1) == 0; in ModifierIs()
845 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local
853 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
874 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic()
910 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
916 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
929 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
932 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
934 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
937 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
940 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
948 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic()
950 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic()
952 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic()
955 } else if (ModifierIs(Modifier, ModifierLen, "ordinal")) { in FormatDiagnostic()
958 assert(ModifierLen == 0 && "Unknown integer modifier"); in FormatDiagnostic()
966 assert(ModifierLen == 0 && "No modifiers for token kinds yet"); in FormatDiagnostic()
988 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic()
1009 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
1033 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
1056 StringRef(Modifier, ModifierLen), in FormatDiagnostic()
1070 StringRef(Modifier, ModifierLen), in FormatDiagnostic()