MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / GetPrefixUntilComma

Function GetPrefixUntilComma

rtpose_wrapper/src/gtest/gtest.h:7307–7310  ·  view source on GitHub ↗

Returns the prefix of 'str' before the first comma in it; returns the entire string if it contains no comma.

Source from the content-addressed store, hash-verified

7305// Returns the prefix of 'str' before the first comma in it; returns
7306// the entire string if it contains no comma.
7307inline String GetPrefixUntilComma(const char* str) {
7308 const char* comma = strchr(str, ',');
7309 return comma == NULL ? String(str) : String(str, comma - str);
7310}
7311
7312// TypeParameterizedTest<Fixture, TestSel, Types>::Register()
7313// registers a list of type-parameterized tests with Google Test. The

Callers 2

RegisterMethod · 0.85

Calls 1

StringFunction · 0.70

Tested by

no test coverage detected