[−][src]Crate ntext
Example program with default formatting -Source ntext-rs
+[−][src]Crate ntext
Example program with default formatting
extern crate ntext; @@ -20,8 +19,9 @@ Source ntext-rs assert_eq!(to_text!(1000, &Formatting::none().capitalize()),"OneThousand"); assert_eq!(to_text!(34123, &Formatting::with_seperator("#").capitalize()),"Thirty#Four#Thousand#One#Hundred#Twenty#Three"); }
This macro will also return an empty string on input zero -You can also create the Formatting struct manually
+This macro will also return an empty string on input zero
+You can also create the Formatting struct manually
+Source ntext-rs
Macros
| to_text | Macro which supports both seperator and without it |
Structs
diff --git a/docs/search-index.js b/docs/search-index.js index 419d408..b970480 100644 --- a/docs/search-index.js +++ b/docs/search-index.js @@ -1,4 +1,4 @@ var searchIndex = JSON.parse('{\ -"ntext":{"doc":"Example program with default formatting Source ntext-rs","i":[[3,"Formatting","ntext","Set the formatting of the output ",null,null],[12,"capitalize","","capitalize the start of the word.",0,null],[12,"digit_seperator","","Set the seperator in between digits like …",0,null],[12,"place_seperator","","Set the seperator in between words like \\\"three/hundred\\\".",0,null],[12,"tens_seperator","","Set the seperator between tens place digits like …",0,null],[5,"digit_to_text","","Convert digit to words in a string.",null,[[],[["option",4],["string",3]]]],[5,"to_text_fmt","","Convert usize to words in a string seperated by a …",null,[[["formatting",3]],["string",3]]],[14,"to_text","","Macro which supports both seperator and without it",null,null],[11,"from","","",0,[[]]],[11,"into","","",0,[[]]],[11,"to_owned","","",0,[[]]],[11,"clone_into","","",0,[[]]],[11,"borrow","","",0,[[]]],[11,"borrow_mut","","",0,[[]]],[11,"try_from","","",0,[[],["result",4]]],[11,"try_into","","",0,[[],["result",4]]],[11,"type_id","","",0,[[],["typeid",3]]],[11,"clone","","",0,[[],["formatting",3]]],[11,"default","","Get the default formatting.",0,[[]]],[11,"none","","No formatting at all",0,[[]]],[11,"with_seperator","","With same formatting for all",0,[[]]],[11,"capitalize","","Capitalize the formatting",0,[[]]],[11,"decapitalize","","Lower case the formatting struct",0,[[]]]],"p":[[3,"Formatting"]]}\ +"ntext":{"doc":"Example program with default formatting","i":[[3,"Formatting","ntext","Set the formatting of the output ",null,null],[12,"capitalize","","capitalize the start of the word.",0,null],[12,"digit_seperator","","Set the seperator in between digits like …",0,null],[12,"place_seperator","","Set the seperator in between words like \\\"three/hundred\\\".",0,null],[12,"tens_seperator","","Set the seperator between tens place digits like …",0,null],[5,"digit_to_text","","Convert digit to words in a string.",null,[[],[["option",4],["string",3]]]],[5,"to_text_fmt","","Convert usize to words in a string seperated by a …",null,[[["formatting",3]],["string",3]]],[14,"to_text","","Macro which supports both seperator and without it",null,null],[11,"from","","",0,[[]]],[11,"into","","",0,[[]]],[11,"to_owned","","",0,[[]]],[11,"clone_into","","",0,[[]]],[11,"borrow","","",0,[[]]],[11,"borrow_mut","","",0,[[]]],[11,"try_from","","",0,[[],["result",4]]],[11,"try_into","","",0,[[],["result",4]]],[11,"type_id","","",0,[[],["typeid",3]]],[11,"clone","","",0,[[],["formatting",3]]],[11,"default","","Get the default formatting.",0,[[]]],[11,"none","","No formatting at all",0,[[]]],[11,"with_seperator","","With same formatting for all",0,[[]]],[11,"capitalize","","Capitalize the formatting",0,[[]]],[11,"decapitalize","","Lower case the formatting struct",0,[[]]]],"p":[[3,"Formatting"]]}\ }'); addSearchOptions(searchIndex);initSearch(searchIndex); \ No newline at end of file diff --git a/docs/src/ntext/lib.rs.html b/docs/src/ntext/lib.rs.html index ba959f3..4aa4903 100644 --- a/docs/src/ntext/lib.rs.html +++ b/docs/src/ntext/lib.rs.html @@ -42,8 +42,7 @@ 39 40-//! Example program with default formatting -//! Source [ntext-rs](https://github.com/uttarayan21/ntext-rs) +//! Example program with default formatting //!```rust //!extern crate ntext; //!use ntext::to_text; @@ -62,8 +61,9 @@ //! assert_eq!(to_text!(34123, &Formatting::with_seperator("#").capitalize()),"Thirty#Four#Thousand#One#Hundred#Twenty#Three"); //!} //!``` -//! This macro will also return an empty string on input zero -//! You can also create the Formatting struct manually +//! This macro will also return an empty string on input zero +//! You can also create the Formatting struct manually +//! Source [ntext-rs](https://github.com/uttarayan21/ntext-rs) mod formatting; mod numtext;