-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for std::u16string. #86
Comments
I think the first step would be to go through Hardcoded positions like 15 as the last character should of course be computed depending on how many characters can be placed inline (within cista/include/cista/containers/string.h Line 301 in 4977b90
cista/include/cista/containers/string.h Line 323 in 4977b90
cista/include/cista/containers/string.h Line 83 in 4977b90
etc. We should also add tests to verify everything is working with the "new" string. |
I have looked into and this seems pretty complex and i dont know how to only say pass in const char* but also get char* and char, but why dont we just use std::basic_string and genric string dont they serve the same purpose? |
Basically, yes. However, it is possible that |
So what do you say to taking and modifying the code of the standard libary for highly fast and tried and tested motheoed and then remove any things that we dont need? |
Of which standard library? There are several implementations. They are all quite complex. I think this would be a lot of work. It would certainly be easier to just do some small changes to support u16string, etc. in Cista itself. |
Hm probably but i am not really sure how the libary works i have tried to change it but it seems quite difficult, i dont really know how to. |
Or well i do know how to the issue is i might need another template which would require alot of changes, Because i need the template also contain the base type i.e |
I'll look into it. Maybe for now, you can use |
Yeah i have tested this before just annoying having to use a vector and make a string from it instead of built in types, this will be fine for the time being i will just add todos foreach line. |
Could it be possible to add support for more basic string types like std::wstring, std::u16string, std::u32string.
Pretty much it, i would add this my self but im confused as to how the string gets turned to bytes.
Is it safe to just add more genric_string defines for std::u16string?
The text was updated successfully, but these errors were encountered: