forked from AcademySoftwareFoundation/OpenColorIO
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a helper function to check if an extension is supported by file t…
…ransform (AcademySoftwareFoundation#1962) * Add FileTransform::IsFormatExtensionSupported() Signed-off-by: Mei Chu <[email protected]> * IsFormatExtensionSupported ignores dot at start. Signed-off-by: Mei Chu <[email protected]> * Add C++ tests for new function. Signed-off-by: Mei Chu <[email protected]> * Fix a small bug in the new C++ tests. Signed-off-by: Mei Chu <[email protected]> * Add python binding, python tests and address feedbacks. Signed-off-by: Mei Chu <[email protected]> * Change extension accepted to IsFormatExtensionSupported() to case-insensitive. Signed-off-by: Mei Chu <[email protected]> * Bugfix to account for single dot input. Signed-off-by: Mei Chu <[email protected]> * Cleanup isFormatExtensionSupported() structure a bit to look nicer. Signed-off-by: Mei Chu <[email protected]> * Reset whitespace cleanup. Also add a guard against invalid pointer. Signed-off-by: Mei Chu <[email protected]> --------- Signed-off-by: Mei Chu <[email protected]> Co-authored-by: Doug Walker <[email protected]>
- Loading branch information
1 parent
b87d80d
commit 67a26e4
Showing
6 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters