| 99 | } |
| 100 | |
| 101 | string build_name(const string& other, const string& one, locale::category c) { |
| 102 | if (other == "*" || one == "*") |
| 103 | return "*"; |
| 104 | if (c == locale::none || other == one) |
| 105 | return other; |
| 106 | |
| 107 | // FIXME: Handle the more complicated cases, such as when the locale has |
| 108 | // different names for different categories. |
| 109 | return "*"; |
| 110 | } |
| 111 | |
| 112 | } // namespace |
| 113 |