Commit 8ed1023
committed
Use UTF-16 conversion function in expr2java
newline and carriage return need to be printed as \n and \r in Java
code, respectively (as opposed to \u000a and \u000d). ' and \ need to be
escaped. The previous implementation was missing those cases. In
addition to that, a call to an existing function is a cleaner way of
writing this.1 parent a53f5bf commit 8ed1023
1 file changed
+2
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 195 | + | |
208 | 196 | | |
209 | 197 | | |
210 | 198 | | |
| |||
0 commit comments