MCPcopy Create free account
hub / github.com/apache/singa / SkipSpaces

Function SkipSpaces

test/gtest/gtest-all.cc:9524–9528  ·  view source on GitHub ↗

Skips to the first non-space char in str. Returns an empty string if str contains only whitespace characters.

Source from the content-addressed store, hash-verified

9522// Skips to the first non-space char in str. Returns an empty string if str
9523// contains only whitespace characters.
9524static const char* SkipSpaces(const char* str) {
9525 while (IsSpace(*str))
9526 str++;
9527 return str;
9528}
9529
9530// Verifies that registered_tests match the test names in
9531// defined_test_names_; returns registered_tests if successful, or

Callers 1

Calls 1

IsSpaceFunction · 0.85

Tested by

no test coverage detected