--- parser3/tests/185.html 2009/05/10 08:32:53 1.5
+++ parser3/tests/185.html 2026/11/01 15:24:35 1.7
@@ -46,6 +46,22 @@ $length(^str.length[]) ^rem{ *** length
^pos[$str;чудных]
^pos[$str;2005]
^pos[$str;zzz]
+^rpos[$str;о]
+^rpos[$str;о;14]
+^rpos[$str;о;13]
+^rpos[$str;о;0]
+^rpos[$str; ]
+^rpos[$str;чудных]
+^rpos[$str;чудных;23]
+^rpos[$str;чудных;22]
+^rpos[$str;.]
+^rpos[$str;.;36]
+^rpos[$str;2005]
+^rpos[$str;2005;100]
+^rpos[$str;2005;37]
+^rpos[$str;zzz]
+^rpos[$str;$empty]
+^rpos[$str;$str]
@@ -75,8 +91,6 @@ $length(^str.length[]) ^rem{ *** length
}
-
-
@left[str;num][substr]
^try{
^if(def $num){
@@ -90,8 +104,6 @@ $length(^str.length[]) ^rem{ *** length
$result[error]
}
-
-
@right[str;num][substr]
^try{
^if(def $num){
@@ -105,8 +117,6 @@ $length(^str.length[]) ^rem{ *** length
$result[error]
}
-
-
@mid[str;num;count]
^try{
^if(def $num){
@@ -124,7 +134,8 @@ $length(^str.length[]) ^rem{ *** length
$result[error]
}
-
-
@pos[str;substr;offset]
^^str.pos[$substr]^if(def $offset){($offset)}: ^if(def $offset){^str.pos[$substr]($offset)}{^str.pos[$substr]}
+
+@rpos[str;substr;offset]
+^^str.rpos[$substr]^if(def $offset){($offset)}: ^if(def $offset){^str.rpos[$substr]($offset)}{^str.rpos[$substr]}