Lines Matching refs:wtr
67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print()
68 visitor::visit(hir, Writer { wtr }) in print()
74 wtr: W, field
98 self.wtr.write_str("[")?; in visit_pre()
104 self.wtr.write_str("-")?; in visit_pre()
108 self.wtr.write_str("]")?; in visit_pre()
111 self.wtr.write_str("(?-u:[")?; in visit_pre()
117 self.wtr.write_str("-")?; in visit_pre()
121 self.wtr.write_str("])")?; in visit_pre()
124 self.wtr.write_str("(?m:^)")?; in visit_pre()
127 self.wtr.write_str("(?m:$)")?; in visit_pre()
130 self.wtr.write_str(r"\A")?; in visit_pre()
133 self.wtr.write_str(r"\z")?; in visit_pre()
136 self.wtr.write_str(r"\b")?; in visit_pre()
139 self.wtr.write_str(r"\B")?; in visit_pre()
142 self.wtr.write_str(r"(?-u:\b)")?; in visit_pre()
145 self.wtr.write_str(r"(?-u:\B)")?; in visit_pre()
149 self.wtr.write_str("(")?; in visit_pre()
152 write!(self.wtr, "(?P<{}>", name)?; in visit_pre()
155 self.wtr.write_str("(?:")?; in visit_pre()
175 self.wtr.write_str("?")?; in visit_post()
178 self.wtr.write_str("*")?; in visit_post()
181 self.wtr.write_str("+")?; in visit_post()
185 write!(self.wtr, "{{{}}}", m)?; in visit_post()
188 write!(self.wtr, "{{{},}}", m)?; in visit_post()
191 write!(self.wtr, "{{{},{}}}", m, n)?; in visit_post()
196 self.wtr.write_str("?")?; in visit_post()
200 self.wtr.write_str(")")?; in visit_post()
207 self.wtr.write_str("|") in visit_alternation_in()
214 self.wtr.write_str("\\")?; in write_literal_char()
216 self.wtr.write_char(c) in write_literal_char()
224 write!(self.wtr, "(?-u:\\x{:02X})", b)
233 write!(self.wtr, "\\x{:02X}", b)