https://github.com/beached/punycoder
Puny enoder/decoder in C++
https://github.com/beached/punycoder
Last synced: 11 months ago
JSON representation
Puny enoder/decoder in C++
- Host: GitHub
- URL: https://github.com/beached/punycoder
- Owner: beached
- License: mit
- Created: 2016-09-12T21:38:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T02:27:33.000Z (over 8 years ago)
- Last Synced: 2025-02-25T06:46:38.587Z (about 1 year ago)
- Language: C++
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Puny Coder
Puny enoder/decoder in C++
To use, call the to_puny_code or from_puny_code functions with a variable that is a string or a char * that has the domain name to encode.
#Example
std::string domain1 = "Bücher.ch";
char const * domain2 = "example.com";
auto enc1 = daw::to_puny_code( domain1 );
auto enc2 = daw::to_puny_code( domain2 );
auto enc3 = daw::to_puny_code( "Bücher.ch" );
auto dec1 = daw::from_puny_code( enc1 );