openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.94k stars 2.55k forks source link

ofGetExtensionLower to uniformize file extension handling in OF Core #8105

Closed dimitre closed 3 weeks ago

dimitre commented 1 month ago

The idea is centralize in one function the process of comparing file extensions in lowercase. I think it is important to handle extensions in lower, so all cases are included (example, JPG, jpg, Jpg) related discussion: https://github.com/openframeworks/openFrameworks/pull/7441

danoli3 commented 4 weeks ago

Nice one

dimitre commented 3 weeks ago

Ok I've removed the comments and applied the functions on other parts of the core. It is ready to go. is the function name ok? @ofTheo @danoli3

ofTheo commented 3 weeks ago

fine with me! :)