summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorLarry Wall <larry@wall.org>1998-09-05 23:48:24 +0000
committerLarry Wall <larry@wall.org>1998-09-05 23:48:24 +0000
commit4757a2438b123364ad98fc0cb4698e56331f713b (patch)
treed1e491103e421493e8c170df368431ccea81971a /op.h
parent342930fbe48873e4ee7fdf12f4ea00e063c13bb8 (diff)
downloadperl-4757a2438b123364ad98fc0cb4698e56331f713b.tar.gz
tr/// logic was hosed under utf8
p4raw-id: //depot/perl@1781
Diffstat (limited to 'op.h')
-rw-r--r--op.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/op.h b/op.h
index cbb2ac3d8a..0b186a89db 100644
--- a/op.h
+++ b/op.h
@@ -103,13 +103,15 @@ typedef U32 PADOFFSET;
#define OPpRUNTIME 64 /* Pattern coming in on the stack */
/* Private for OP_TRANS */
-#define OPpTRANS_GROWS 1
-#define OPpTRANS_FROM_UTF 2
-#define OPpTRANS_TO_UTF 4
-#define OPpTRANS_COUNTONLY 8
-#define OPpTRANS_SQUASH 16
-#define OPpTRANS_DELETE 32
-#define OPpTRANS_COMPLEMENT 64
+#define OPpTRANS_FROM_UTF 1
+#define OPpTRANS_TO_UTF 2
+#define OPpTRANS_IDENTICAL 4
+ /* When CU or UC, means straight latin-1 to utf-8 or vice versa */
+ /* Otherwise, IDENTICAL means the right side is the same as the left */
+#define OPpTRANS_SQUASH 8
+#define OPpTRANS_DELETE 16
+#define OPpTRANS_COMPLEMENT 32
+#define OPpTRANS_GROWS 64
/* Private for OP_REPEAT */
#define OPpREPEAT_DOLIST 64 /* List replication. */