Rust Programming Exercises: Strings Search and Replace
Автор: Thomas 🏕
Загружено: 2022-05-23
Просмотров: 2203
Описание:
In this video we explore several String utilities, regular expressions, search and replace, capture groups, find, splitting strings, and various string manipulation techniques in Rust. We make use of the Regex crate, glob for finding files with a glob wildcard path, reading in a file from fs, reading from stdin. We also briefly cover the rope data structure for more efficient string manipulation as used in common text editors. Finally, we compare several of our string manipulation techniques to a sed program and implement a simple command line for search and replace in a file or from stdin.
↠ References:
Strings Chapter (Rust Book): https://doc.rust-lang.org/book/ch08-0...
Regex Crate: https://docs.rs/regex/latest/regex/st...
std::io::stdin https://doc.rust-lang.org/std/io/stru...
BufReader: https://doc.rust-lang.org/std/io/stru...
Strings Rust By Example: https://doc.rust-lang.org/rust-by-exa...
std::String: https://doc.rust-lang.org/std/string/...
Glob: https://docs.rs/glob/0.3.0/glob/
Rope Data Structure: https://en.wikipedia.org/wiki/Rope_(d...)
Rope Crate: https://docs.rs/ropey/latest/ropey/
↠ Patreon: https://www.patreon.com/nyxtom?fan_la...
↠ Dotfiles: https://github.com/nyxtom/dotfiles
↠ Twitter: @nyxtom / nyxtom
↠ Channel: / nyxtom
Cheers! 🍻
🦀 #rust #rustlang #rustprogramming #exercises #programming
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: