Skip to content

ridiculousfish/demo-rust-string-issues

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of Rust string issues

Demonstration of Rust string issues, such as UTF-8 encoding, accents, etc.

Feedback welcome.

This repo is based on the artice about string handling here:

This code is tested on Rust 1.5.3:

$ rustc --version                                                                     
rustc 1.53.0

To use this code, download it and run it as usual for Rust:

cargo run

Output:

Does it print correctly? noël
What is the character length? 4
What is the reverse? lëon
What are the first three characters? noë
Does it print correctly? 😸😾
What is the character length? 2
What is the reverse? 😾😸
What is the substring after the first character? 😾

Tracking:

  • Package: demo-rust-string-issues
  • Version: 1.1.0
  • Updated: 2021-06-23T02:42:18Z
  • License: BSD or GPL or MIT
  • Contact: Joel Parker Henderson [email protected]

About

Demo Rust string issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%