Commit 48972dd
committed
doop.c Use new utf8_to_uv_or_die()
This replaces the older forms. For two of the instances, this gives
equivalent functionality, where they croaked if an operand to tr/// was
malformed. For the other instances, it didn't croak, but now does.
This makes the behavior consistent for tr///, as all the affected
instances are supposed to be equivalent. For performance reasons, one
or another of the functions would be called, and depending on which one
the same input would croak or not.1 parent 2b29c5b commit 48972dd
1 file changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 373 | + | |
378 | 374 | | |
379 | 375 | | |
380 | 376 | | |
| |||
490 | 486 | | |
491 | 487 | | |
492 | 488 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 489 | + | |
497 | 490 | | |
498 | 491 | | |
499 | 492 | | |
| |||
0 commit comments