MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / tokenize

Function tokenize

src/dpp/utility.cpp:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605std::vector<std::string> tokenize(std::string const &in, const char* sep) {
606 std::string::size_type b = 0;
607 std::vector<std::string> result;
608
609 while ((b = in.find_first_not_of(sep, b)) != std::string::npos) {
610 auto e = in.find(sep, b);
611 result.push_back(in.substr(b, e-b));
612 b = e;
613 }
614 return result;
615}
616
617std::string bot_invite_url(const snowflake bot_id, const uint64_t permissions, const std::vector<std::string>& scopes) {
618 std::string scope;

Callers 6

mainFunction · 0.85
handle_bufferMethod · 0.85
handle_bufferMethod · 0.85
get_expire_timeMethod · 0.85
get_issued_timeMethod · 0.85
handle_bufferMethod · 0.85

Calls 2

push_backMethod · 0.80
findMethod · 0.45

Tested by 1

mainFunction · 0.68