How to get last characters of a string?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mitras1
Posts: 26
Joined: Mon Jan 29, 2024 8:02 am

How to get last characters of a string?

Post 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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to get last characters of a string?

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
mitras1
Posts: 26
Joined: Mon Jan 29, 2024 8:02 am

Re: How to get last characters of a string?

Post 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
Post Reply