MCPcopy Create free account
hub / github.com/antvis/F2Native / SafePushStringToVector

Function SafePushStringToVector

core/graphics/canvas/CanvasFontParser.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29inline void SafePushStringToVector(std::vector<std::string> &out, const std::string &s) {
30 if(!s.empty()) {
31 out.emplace_back(s);
32 }
33}
34
35void SplitFontFields(const std::string &s, std::vector<std::string> &out) {
36 size_t len = s.length();

Callers 1

SplitFontFieldsFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected