MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getChar

Function getChar

src/common/SimilarToRegex.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 7

Lexer.cppFile · 0.85
skipMethod · 0.85
SimilarToCompilerMethod · 0.85
getPatternCharMethod · 0.85
parsePrimaryMethod · 0.85
getPatternCharMethod · 0.85

Calls 3

hasCharFunction · 0.85
raiseFunction · 0.85
GdsClass · 0.85

Tested by

no test coverage detected