| 34 | } |
| 35 | |
| 36 | UChar32 getChar(bool latin, const char* str, unsigned len, unsigned& pos) |
| 37 | { |
| 38 | if (!hasChar(len, pos)) |
| 39 | status_exception::raise(Arg::Gds(isc_invalid_similar_pattern)); |
| 40 | |
| 41 | UChar32 c; |
| 42 | |
| 43 | if (latin) |
| 44 | c = str[pos++]; |
| 45 | else |
| 46 | { |
| 47 | U8_NEXT_UNSAFE(str, pos, c); |
| 48 | |
| 49 | if (c < 0) |
| 50 | status_exception::raise(Arg::Gds(isc_invalid_similar_pattern)); |
| 51 | } |
| 52 | |
| 53 | return c; |
| 54 | } |
| 55 | |
| 56 | static const unsigned COMP_FLAG_PREFER_FEWER = 0x01; |
| 57 | static const unsigned COMP_FLAG_GROUP_CAPTURE = 0x02; |
no test coverage detected