MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / tokenize

Method tokenize

src/bzfs/bzfsAPI.cpp:644–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642//-------------------------------------------------------------------------
643
644void bz_APIStringList::tokenize(const char* in, const char* delims, int maxTokens, bool useQuotes) {
645 clear();
646 if (!in || !delims) {
647 return ;
648 }
649
650 std::vector < std::string > list = TextUtils::tokenize(std::string(in), std::string(delims), maxTokens, useQuotes);
651
652 for (unsigned int i = 0; i < list.size(); i++) {
653 data->list.push_back(bz_ApiString(list[i]));
654 }
655}
656
657//******************************bz_APIWorldObjectList********************************************
658

Callers 5

handleMethod · 0.80
handleMethod · 0.80
handleMethod · 0.80
handleMethod · 0.80
handleMethod · 0.80

Calls 4

clearFunction · 0.85
tokenizeFunction · 0.50
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected