likle / cwalk

Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows and MacOS. Supports UNIX and Windows path styles on those platforms.
https://likle.github.io/cwalk/
MIT License
250 stars 39 forks source link

consider provide two set of APIs? #16

Open winterland1989 opened 4 years ago

winterland1989 commented 4 years ago

Sometime processing paths with all styles is needed, and switch between them is not convenient(not thread safe too), can you separated two set of APIs(with CPP or something) so that user can use them both without switch frequently?

likle commented 3 years ago

Hi @winterland1989 ! Thank you for submitting this issue. I thought a while ago about marking the style state as thread local to tackle the thread safety issue. I understand it might be inconvenient to switch styles if you do so very often. I will give this a thought on how it can be improved!