Returns a copy of the value. Read more
diff --git a/docs/search-index.js b/docs/search-index.js
index b970480..e1ef5ca 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","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 seperators",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/formatting.rs.html b/docs/src/ntext/formatting.rs.html
index 8a0fd1d..2ae7cb9 100644
--- a/docs/src/ntext/formatting.rs.html
+++ b/docs/src/ntext/formatting.rs.html
@@ -96,7 +96,7 @@
tens_seperator:
None,
}
}
-
+
pub fn with_seperator(
seperator:
&'format str)
-> Self {
Self {
capitalize:
false,
diff --git a/docs/src/ntext/numtext.rs.html b/docs/src/ntext/numtext.rs.html
index 48c383a..a229c3b 100644
--- a/docs/src/ntext/numtext.rs.html
+++ b/docs/src/ntext/numtext.rs.html
@@ -178,6 +178,18 @@
175
176
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
use crate::Formatting;
@@ -228,6 +240,12 @@
4 => buffer.push_str("Thousand"),
5 => (),
6 => buffer.push_str("Million"),
+ 7 => (),
+ 8 => (),
+ 9 => buffer.push_str("Billion"),
+ 10 => (),
+ 11 => (),
+ 12 => buffer.push_str("Trillion"),
_ => (),
};
} else {
@@ -238,6 +256,12 @@
4 => buffer.push_str("thousand"),
5 => (),
6 => buffer.push_str("million"),
+ 7 => (),
+ 8 => (),
+ 9 => buffer.push_str("billion"),
+ 10 => (),
+ 11 => (),
+ 12 => buffer.push_str("trillion"),
_ => (),
}
}
@@ -320,7 +344,7 @@
pub fn to_text_fmt(number: usize, fmt: &Formatting) -> String {
let mut numtext: String = String::new();
let mut last: Option<u8> = None;
- let tens_place_holders: [u8; 3] = [2, 5, 7];
+ let tens_place_holders: [u8; 4] = [2, 5, 7, 10];
let digits: Vec<u8> = number
.to_string()
.chars()