Skip to content

Commit

Permalink
Fix for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
larochj committed Dec 13, 2024
1 parent b168c31 commit 51d70ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenColorIO/ParseUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ bool StrEqualsCaseIgnore(const std::string & a, const std::string & b)
}

// Find the end of a name from a list contained in a string.
// The element of the list are separeted by ":" or ",".
// The element of the list are separeted by a character defined by the sep parameter.
// The name can be surrounded by quotes to enable name including theses symbols.
static int findEndOfName(const std::string & s, size_t start, char sep)
{
Expand Down
3 changes: 3 additions & 0 deletions tests/cpu/ParseUtils_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ OCIO_ADD_TEST(ParseUtils, split_string_env_style)
OCIO_CHECK_EQUAL("a", outputvec[1]);
OCIO_CHECK_EQUAL("test", outputvec[2]);

// If the string contains a comma,
// it is chosen as the separator character rather than the colon
// (even if it is within quotes and therefore not used as such).
outputvec = OCIO::SplitStringEnvStyle(" \"This , is \": a: test ");
OCIO_CHECK_EQUAL(1, outputvec.size());
OCIO_CHECK_EQUAL("\"This , is \": a: test", outputvec[0]);
Expand Down

0 comments on commit 51d70ea

Please sign in to comment.