move grapheme stuff to melib
parent
51c913d450
commit
f51ea93351
|
@ -23,3 +23,4 @@ serde = "1.0.71"
|
|||
serde_derive = "1.0.71"
|
||||
bincode = "1.0.1"
|
||||
uuid = { version = "0.6", features = ["serde", "v4"] }
|
||||
unicode-segmentation = "1.2.1" # >:c
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
use super::*;
|
||||
use unicode_segmentation::UnicodeSegmentation;
|
||||
|
||||
pub trait Graphemes: UnicodeSegmentation + CodePointsIter {
|
||||
fn split_graphemes<'a>(&'a self) -> Vec<&'a str> {
|
|
@ -81,7 +81,11 @@ pub mod addressbook;
|
|||
pub mod async_workers;
|
||||
pub mod conf;
|
||||
pub mod error;
|
||||
pub mod grapheme_clusters;
|
||||
pub mod mailbox;
|
||||
mod wcwidth;
|
||||
pub use self::grapheme_clusters::*;
|
||||
pub use self::wcwidth::*;
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
|
|
@ -22,7 +22,7 @@ extern crate serde;
|
|||
use self::serde::de::Visitor;
|
||||
use self::serde::{de, Deserialize, Deserializer};
|
||||
extern crate unicode_segmentation;
|
||||
use self::unicode_segmentation::UnicodeSegmentation;
|
||||
use melib::grapheme_clusters::*;
|
||||
|
||||
#[macro_use]
|
||||
mod position;
|
||||
|
@ -30,12 +30,8 @@ mod position;
|
|||
mod cells;
|
||||
#[macro_use]
|
||||
mod keys;
|
||||
mod grapheme_clusters;
|
||||
mod text_editing;
|
||||
mod wcwidth;
|
||||
pub use self::cells::*;
|
||||
pub use self::grapheme_clusters::*;
|
||||
pub use self::keys::*;
|
||||
pub use self::position::*;
|
||||
pub use self::text_editing::*;
|
||||
pub use self::wcwidth::*;
|
||||
|
|
Loading…
Reference in New Issue