Page 1 of 1

How to get last characters of a string?

Posted: Tue Mar 19, 2024 11:01 am
by mitras1
I'm making a mesh loader, currently implementing isALoadableFileExtension. I found out that Irrlicht uses its own string class but I just can't find the right method

Re: How to get last characters of a string?

Posted: Tue Mar 19, 2024 11:34 am
by CuteAlien
Easiest is to use the functions in coreutil.h like irr::core::hasFileExtension or irr::core::isFileExtension
You can also take a look how it's implemented.

Re: How to get last characters of a string?

Posted: Tue Mar 19, 2024 4:15 pm
by mitras1
CuteAlien wrote: Tue Mar 19, 2024 11:34 am Easiest is to use the functions in coreutil.h like irr::core::hasFileExtension or irr::core::isFileExtension
You can also take a look how it's implemented.
Thanks