forked from AcademySoftwareFoundation/OpenColorIO
-
Notifications
You must be signed in to change notification settings - Fork 0
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 <meimchu@gmail.com> * IsFormatExtensionSupported ignores dot at start. Signed-off-by: Mei Chu <meimchu@gmail.com> * Add C++ tests for new function. Signed-off-by: Mei Chu <meimchu@gmail.com> * Fix a small bug in the new C++ tests. Signed-off-by: Mei Chu <meimchu@gmail.com> * Add python binding, python tests and address feedbacks. Signed-off-by: Mei Chu <meimchu@gmail.com> * Change extension accepted to IsFormatExtensionSupported() to case-insensitive. Signed-off-by: Mei Chu <meimchu@gmail.com> * Bugfix to account for single dot input. Signed-off-by: Mei Chu <meimchu@gmail.com> * Cleanup isFormatExtensionSupported() structure a bit to look nicer. Signed-off-by: Mei Chu <meimchu@gmail.com> * Reset whitespace cleanup. Also add a guard against invalid pointer. Signed-off-by: Mei Chu <meimchu@gmail.com> --------- Signed-off-by: Mei Chu <meimchu@gmail.com> Co-authored-by: Doug Walker <doug.walker@autodesk.com>
- 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