MCPcopy Create free account
hub / github.com/documentdb/documentdb / StringViewContains

Function StringViewContains

pg_documentdb_core/include/utils/string_view.h:205–210  ·  view source on GitHub ↗

* Checks if a string view contains a given character. */

Source from the content-addressed store, hash-verified

203 * Checks if a string view contains a given character.
204 */
205inline static bool
206StringViewContains(const StringView *source, char character)
207{
208 return source != NULL && source->length > 0 && memchr(source->string, character,
209 source->length) != NULL;
210}
211
212
213inline static Datum

Callers 5

HandleCountCoreFunction · 0.85
HandleGroupCoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected