MCPcopy Create free account
hub / github.com/Tracktion/choc / removeSingleQuotes

Function removeSingleQuotes

choc/text/choc_StringUtilities.h:82–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81[[nodiscard]] inline std::string removeDoubleQuotes (std::string text) { return removeOuterCharacter (std::move (text), '"'); }
82[[nodiscard]] inline std::string removeSingleQuotes (std::string text) { return removeOuterCharacter (std::move (text), '\''); }
83
84[[nodiscard]] inline std::string addDoubleQuotes (std::string text) { return "\"" + std::move (text) + "\""; }
85[[nodiscard]] inline std::string addSingleQuotes (std::string text) { return "'" + std::move (text) + "'"; }

Callers

nothing calls this directly

Calls 1

removeOuterCharacterFunction · 0.85

Tested by

no test coverage detected