Strings in Rust
- Create a String
- Create empty string and grow it using push and push_str
- Length of string
- Capacity of string
- Strings and memory allocation
- Rust - string ends with
- Rust - string starts with
- To lower, to upper case
- Accessing characters in a string
- Rust - string slices
- Rust - string characters
- Iterate over the characters of a string
- Rust - reverse string
- Concatenation str with str
- Concatenation String with String
- Concatenation String with String (clone)
- Concatenation String with str
- Concatenate strings using format!
- concat
- Split string
- Split string on whitespace
- Split on newlines - use lines
- Append to string with push_str
- Create String from literal string using to_string
- Str and String equality
- String notes
- String replace all
- String replace limited times
- String replace range
- Function to combine two strings
- Ownership and strings
- Slice and change string
- Compare strings
- Is one string in another string - contains?
- Embed double quotes in string
- Remove leading and trailing whitespace
- Remove extra whitespace from string
- String is alphabetic or alphanumeric
- Compare memory address (pointer)
- Exercise: Count digits from string
- Exercise: concatenate strings
- Exercise: is it a palindrome?
- Exercise: is it an anagram?
- Exercise: Get nth double character
- Exercise: get first word
- Solution: Count digits from string