| 133 | } |
| 134 | |
| 135 | int ends_with(const string &s, const char * const suffixes[]) |
| 136 | { |
| 137 | if (!suffixes) |
| 138 | return 0; |
| 139 | |
| 140 | for (int i = 0; suffixes[i]; ++i) |
| 141 | if (ends_with(s, suffixes[i])) |
| 142 | return 1 + i; |
| 143 | |
| 144 | return 0; |
| 145 | } |
| 146 | |
| 147 | |
| 148 | static const string _get_indent(const string &s) |