commit | 3131662d2339bb3b7d412356a275a863357c4658 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Fri May 26 12:54:47 2017 -0700 |
committer | Alex Crichton <alex@alexcrichton.com> | Fri May 26 12:54:47 2017 -0700 |
tree | fe1f707f30e24a2efc618bffa79a9fc212e46e47 | |
parent | 43881256b9d7dbd07643370a30ba634e997149c1 [diff] [blame] |
Raw string literals
diff --git a/src/lib.rs b/src/lib.rs index d8a872d..879ccfe 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -180,6 +180,14 @@ pub fn integer(s: &str) -> Literal { Literal(imp::Literal::integer(s)) } + + pub fn raw_string(s: &str, pounds: usize) -> Literal { + Literal(imp::Literal::raw_string(s, pounds)) + } + + pub fn raw_byte_string(s: &str, pounds: usize) -> Literal { + Literal(imp::Literal::raw_byte_string(s, pounds)) + } } macro_rules! froms {