GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
222 stars 23 forks source link

Use UTF-8 for strings and identifiers #285

Closed GabrielDosReis closed 2 years ago

GabrielDosReis commented 2 years ago

This patch switches the IPR to use UTF-8 encoding to store strings and identifiers.

This entails some source breaking changes for users, especially at places that previously called factory functions with const char* or similar. See changes to the unit tests for examples.

There is also a slight modification to the interface class ipr::String.