Lines Matching refs:write_str
95 Ast::Dot(_) => self.wtr.write_str("."), in visit_post()
110 self.wtr.write_str("|") in visit_alternation_in()
136 self.wtr.write_str("-")?; in visit_class_set_item_post()
160 CaptureIndex(_) => self.wtr.write_str("("), in fmt_group_pre()
162 self.wtr.write_str("(?P<")?; in fmt_group_pre()
163 self.wtr.write_str(&x.name)?; in fmt_group_pre()
164 self.wtr.write_str(">")?; in fmt_group_pre()
168 self.wtr.write_str("(?")?; in fmt_group_pre()
170 self.wtr.write_str(":")?; in fmt_group_pre()
177 self.wtr.write_str(")") in fmt_group_post()
183 ZeroOrOne if ast.greedy => self.wtr.write_str("?"), in fmt_repetition()
184 ZeroOrOne => self.wtr.write_str("??"), in fmt_repetition()
185 ZeroOrMore if ast.greedy => self.wtr.write_str("*"), in fmt_repetition()
186 ZeroOrMore => self.wtr.write_str("*?"), in fmt_repetition()
187 OneOrMore if ast.greedy => self.wtr.write_str("+"), in fmt_repetition()
188 OneOrMore => self.wtr.write_str("+?"), in fmt_repetition()
192 self.wtr.write_str("?")?; in fmt_repetition()
237 self.wtr.write_str(r"\a") in fmt_literal()
240 self.wtr.write_str(r"\f") in fmt_literal()
242 Special(ast::SpecialLiteralKind::Tab) => self.wtr.write_str(r"\t"), in fmt_literal()
244 self.wtr.write_str(r"\n") in fmt_literal()
247 self.wtr.write_str(r"\r") in fmt_literal()
250 self.wtr.write_str(r"\v") in fmt_literal()
253 self.wtr.write_str(r"\ ") in fmt_literal()
261 StartLine => self.wtr.write_str("^"), in fmt_assertion()
262 EndLine => self.wtr.write_str("$"), in fmt_assertion()
263 StartText => self.wtr.write_str(r"\A"), in fmt_assertion()
264 EndText => self.wtr.write_str(r"\z"), in fmt_assertion()
265 WordBoundary => self.wtr.write_str(r"\b"), in fmt_assertion()
266 NotWordBoundary => self.wtr.write_str(r"\B"), in fmt_assertion()
271 self.wtr.write_str("(?")?; in fmt_set_flags()
273 self.wtr.write_str(")")?; in fmt_set_flags()
282 FlagsItemKind::Negation => self.wtr.write_str("-"), in fmt_flags()
284 Flag::CaseInsensitive => self.wtr.write_str("i"), in fmt_flags()
285 Flag::MultiLine => self.wtr.write_str("m"), in fmt_flags()
286 Flag::DotMatchesNewLine => self.wtr.write_str("s"), in fmt_flags()
287 Flag::SwapGreed => self.wtr.write_str("U"), in fmt_flags()
288 Flag::Unicode => self.wtr.write_str("u"), in fmt_flags()
289 Flag::IgnoreWhitespace => self.wtr.write_str("x"), in fmt_flags()
301 self.wtr.write_str("[^") in fmt_class_bracketed_pre()
303 self.wtr.write_str("[") in fmt_class_bracketed_pre()
311 self.wtr.write_str("]") in fmt_class_bracketed_post()
320 Intersection => self.wtr.write_str("&&"), in fmt_class_set_binary_op_kind()
321 Difference => self.wtr.write_str("--"), in fmt_class_set_binary_op_kind()
322 SymmetricDifference => self.wtr.write_str("~~"), in fmt_class_set_binary_op_kind()
329 Digit if ast.negated => self.wtr.write_str(r"\D"), in fmt_class_perl()
330 Digit => self.wtr.write_str(r"\d"), in fmt_class_perl()
331 Space if ast.negated => self.wtr.write_str(r"\S"), in fmt_class_perl()
332 Space => self.wtr.write_str(r"\s"), in fmt_class_perl()
333 Word if ast.negated => self.wtr.write_str(r"\W"), in fmt_class_perl()
334 Word => self.wtr.write_str(r"\w"), in fmt_class_perl()
341 Alnum if ast.negated => self.wtr.write_str("[:^alnum:]"), in fmt_class_ascii()
342 Alnum => self.wtr.write_str("[:alnum:]"), in fmt_class_ascii()
343 Alpha if ast.negated => self.wtr.write_str("[:^alpha:]"), in fmt_class_ascii()
344 Alpha => self.wtr.write_str("[:alpha:]"), in fmt_class_ascii()
345 Ascii if ast.negated => self.wtr.write_str("[:^ascii:]"), in fmt_class_ascii()
346 Ascii => self.wtr.write_str("[:ascii:]"), in fmt_class_ascii()
347 Blank if ast.negated => self.wtr.write_str("[:^blank:]"), in fmt_class_ascii()
348 Blank => self.wtr.write_str("[:blank:]"), in fmt_class_ascii()
349 Cntrl if ast.negated => self.wtr.write_str("[:^cntrl:]"), in fmt_class_ascii()
350 Cntrl => self.wtr.write_str("[:cntrl:]"), in fmt_class_ascii()
351 Digit if ast.negated => self.wtr.write_str("[:^digit:]"), in fmt_class_ascii()
352 Digit => self.wtr.write_str("[:digit:]"), in fmt_class_ascii()
353 Graph if ast.negated => self.wtr.write_str("[:^graph:]"), in fmt_class_ascii()
354 Graph => self.wtr.write_str("[:graph:]"), in fmt_class_ascii()
355 Lower if ast.negated => self.wtr.write_str("[:^lower:]"), in fmt_class_ascii()
356 Lower => self.wtr.write_str("[:lower:]"), in fmt_class_ascii()
357 Print if ast.negated => self.wtr.write_str("[:^print:]"), in fmt_class_ascii()
358 Print => self.wtr.write_str("[:print:]"), in fmt_class_ascii()
359 Punct if ast.negated => self.wtr.write_str("[:^punct:]"), in fmt_class_ascii()
360 Punct => self.wtr.write_str("[:punct:]"), in fmt_class_ascii()
361 Space if ast.negated => self.wtr.write_str("[:^space:]"), in fmt_class_ascii()
362 Space => self.wtr.write_str("[:space:]"), in fmt_class_ascii()
363 Upper if ast.negated => self.wtr.write_str("[:^upper:]"), in fmt_class_ascii()
364 Upper => self.wtr.write_str("[:upper:]"), in fmt_class_ascii()
365 Word if ast.negated => self.wtr.write_str("[:^word:]"), in fmt_class_ascii()
366 Word => self.wtr.write_str("[:word:]"), in fmt_class_ascii()
367 Xdigit if ast.negated => self.wtr.write_str("[:^xdigit:]"), in fmt_class_ascii()
368 Xdigit => self.wtr.write_str("[:xdigit:]"), in fmt_class_ascii()
377 self.wtr.write_str(r"\P")?; in fmt_class_unicode()
379 self.wtr.write_str(r"\p")?; in fmt_class_unicode()