MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / match

Function match

Libraries/Strings/StringIterator.h:138–138  ·  view source on GitHub ↗

@brief Check if code unit at current position matches CodePoint `c` @param c code point to match @return `true` if code unit at current position matches `c`, `false` if there is no match or position is at `end`

Source from the content-addressed store, hash-verified

136 /// @return `true` if code unit at current position matches `c`, `false` if there is no match or position is at
137 /// `end`
138 [[nodiscard]] bool match(CodePoint c) { return it < end and CharIterator::decode(it, end) == c; }
139
140 /// @brief Decode code unit at current position and advance
141 /// @param c output code point read

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.85

Tested by

no test coverage detected