MCPcopy Create free account
hub / github.com/SpartanJ/eepp / countLines

Method countLines

src/eepp/core/string.cpp:2504–2512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2502}
2503
2504size_t String::countLines( std::string_view text ) {
2505 if ( text.empty() )
2506 return 0;
2507 size_t count = 1;
2508 for ( const auto& c : text )
2509 if ( c == '\n' )
2510 count++;
2511 return count;
2512}
2513
2514void String::readBySeparator( String::View buf, std::function<void( String::View )> onSepChunkRead,
2515 String::StringBaseType sep ) {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected