Lines Matching refs:cstr
111 use cstr::cstr;
139 check(cstr!(""), Ok(&[])); in empty()
140 check(cstr!(" "), Ok(&[])); in empty()
141 check(cstr!(" \n "), Ok(&[])); in empty()
146 check(cstr!("foo"), Ok(&[("foo", None)])); in single()
147 check(cstr!(" foo"), Ok(&[("foo", None)])); in single()
148 check(cstr!("foo "), Ok(&[("foo", None)])); in single()
149 check(cstr!(" foo "), Ok(&[("foo", None)])); in single()
154 check(cstr!("foo=bar"), Ok(&[("foo", Some("=bar"))])); in single_with_value()
155 check(cstr!(" foo=bar"), Ok(&[("foo", Some("=bar"))])); in single_with_value()
156 check(cstr!("foo=bar "), Ok(&[("foo", Some("=bar"))])); in single_with_value()
157 check(cstr!(" foo=bar "), Ok(&[("foo", Some("=bar"))])); in single_with_value()
159 check(cstr!("foo="), Ok(&[("foo", Some("="))])); in single_with_value()
160 check(cstr!(" foo="), Ok(&[("foo", Some("="))])); in single_with_value()
161 check(cstr!("foo= "), Ok(&[("foo", Some("="))])); in single_with_value()
162 check(cstr!(" foo= "), Ok(&[("foo", Some("="))])); in single_with_value()
167 check(cstr!("foo=hello\" \"world"), Ok(&[("foo", Some("=hello\" \"world"))])); in single_with_quote()
178 cstr!(" a=b c=d e= f g "), in multiple()
182 cstr!(" a=b \n c=d e= f g"), in multiple()
190 cstr!("foo=incomplete\" quote bar=y"), in incomplete_quote()
197 …check(cstr!(" a a1= b=c d=e,f,g x=\"value with quote\" y=val\"ue with \"multiple\" quo\"te "),… in complex()