MCPcopy Create free account
hub / github.com/RenderKit/embree / createCharMap

Function createCharMap

common/lexers/stringstream.cpp:11–14  ·  view source on GitHub ↗

creates map for fast categorization of characters */

Source from the content-addressed store, hash-verified

9
10 /* creates map for fast categorization of characters */
11 static void createCharMap(bool map[256], const std::string& chrs) {
12 for (size_t i=0; i<256; i++) map[i] = false;
13 for (size_t i=0; i<chrs.size(); i++) map[uint8_t(chrs[i])] = true;
14 }
15
16 /* simple tokenizer */
17 StringStream::StringStream(const Ref<Stream<int> >& cin, const std::string& seps, const std::string& endl, bool multiLine)

Callers 1

StringStreamMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected