mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
Add a wchar prelude
- This will hopefully make it easier to always include WExt and ToWString, and make using WStr/WString more natural
This commit is contained in:
parent
b7f7dcf788
commit
5d58652394
1 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,15 @@ pub use widestring::{Utf32Str as wstr, Utf32String as WString};
|
|||
/// Pull in our extensions.
|
||||
pub use crate::wchar_ext::{IntoCharIter, WExt};
|
||||
|
||||
pub(crate) mod prelude {
|
||||
pub(crate) use crate::{
|
||||
wchar::{wstr, IntoCharIter, WString, L},
|
||||
wchar_ext::{ToWString, WExt},
|
||||
wutil::{sprintf, wgettext, wgettext_fmt, wgettext_str},
|
||||
};
|
||||
pub(crate) use widestring_suffix::widestrs;
|
||||
}
|
||||
|
||||
/// Creates a wstr string slice, like the "L" prefix of C++.
|
||||
/// The result is of type wstr.
|
||||
/// It is NOT nul-terminated.
|
||||
|
|
Loading…
Reference in a new issue