|
ModelViewer 0.1
Template for CPP projects
|
Functions | |
| bool | isNotSpace (const unsigned char ch) noexcept |
| void | ltrim (std::string &s) |
| Trim from the start (in place) | |
| void | rtrim (std::string &s) |
| Trim from the end (in place) | |
| void | trim (std::string &s) |
| Trim from both ends (in place) | |
| std::string | ltrim_copy (std::string s) |
| Trim from the start (copying) | |
| std::string | rtrim_copy (std::string s) |
| Trim from the end (copying) | |
| std::string | trim_copy (std::string s) |
| Trim from both ends (copying) | |
| std::string | normalizePath (std::string p) |
| Normalize a file path by removing "file://" scheme and leading slash on Windows paths. | |
|
inlinenoexcept |
Referenced by ltrim().

|
inline |
Trim from the start (in place)
| s | String to trim |
References isNotSpace().
Referenced by ltrim_copy(), and trim().


|
inline |
|
inline |
Normalize a file path by removing "file://" scheme and leading slash on Windows paths.
| p | Path to normalize |
Referenced by model_viewer::loaders::ObjLoader::loadModel().

|
inline |
Trim from the end (in place)
| s | String to trim |
Referenced by rtrim_copy(), and trim().

|
inline |
|
inline |
Trim from both ends (in place)
| s | String to trim |
References ltrim(), and rtrim().
Referenced by trim_copy().


|
inline |
Trim from both ends (copying)
| s | String to trim |
References trim().
Referenced by model_viewer::material::MTLMaterial::parseColor(), model_viewer::material::MTLMaterial::parseMap(), model_viewer::material::MTLMaterial::parseMaterial(), model_viewer::loaders::ObjLoader::parseModel(), model_viewer::material::MTLMaterial::parseScalar(), and model_viewer::loaders::ObjLoader::retrieveMaterial().

