|
HDK
|
Include dependency graph for textParserUtils.h:Go to the source code of this file.
Functions | |
| SDF_API VtValue | Sdf_ParseValueFromString (const std::string &input, const SdfValueTypeName &expectedSdfType) |
| SDF_API std::string | Sdf_QuoteString (const std::string &input) |
| SDF_API std::string | Sdf_QuoteAssetPath (const std::string &path) |
| SDF_API VtValue Sdf_ParseValueFromString | ( | const std::string & | input, |
| const SdfValueTypeName & | expectedSdfType | ||
| ) |
Attempt to parse a VtValue from a string representing a value given the expected sdf type. The parse follows the expectations of the .usda file format. On success, returns a corresponding VtValue. On failure, returns an empty VtValue and populates TfError(s).
| SDF_API std::string Sdf_QuoteAssetPath | ( | const std::string & | path | ) |
Add @'s around a given path to produce a string representation of an asset path. If the path contains @, @@ will be added around the path. If the path contains @@, the contained @@ will be escaped.
| SDF_API std::string Sdf_QuoteString | ( | const std::string & | input | ) |
Add quotes around given string, escaping inner quotes and unprintable characters as necessary. If the string contains newlines it's quoted with triple quotes and the newlines are not escaped.