[svn:parrot] r37761 - branches/pge1/compilers/pge/PGE

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Fri Mar 27 19:36:58 UTC 2009


Author: pmichaud
Date: Fri Mar 27 19:36:58 2009
New Revision: 37761
URL: https://trac.parrot.org/parrot/changeset/37761

Log:
[pge]:  Small rename of 'text' to 'Str' (per S05).

Modified:
   branches/pge1/compilers/pge/PGE/Match.pir

Modified: branches/pge1/compilers/pge/PGE/Match.pir
==============================================================================
--- branches/pge1/compilers/pge/PGE/Match.pir	Fri Mar 27 19:33:03 2009	(r37760)
+++ branches/pge1/compilers/pge/PGE/Match.pir	Fri Mar 27 19:36:58 2009	(r37761)
@@ -212,13 +212,13 @@
 .end
 
 
-=item C<text()>
+=item C<Str()>
 
 Returns the portion of the target string matched by this object.
 
 =cut
 
-.sub 'text' :method
+.sub 'Str' :method
     $P0 = getattribute self, '$.target'
     $P1 = getattribute self, '$.from'
     $P2 = getattribute self, '$.pos'
@@ -233,6 +233,10 @@
     .return ('')
 .end
 
+.sub 'text' :method
+    .tailcall self.'Str'()
+.end
+
 
 =item C<item()>
 
@@ -270,7 +274,7 @@
     if null obj goto ret_null
     .return (obj)
   ret_null:
-    .tailcall self.'text'()
+    .tailcall self.'Str'()
 .end
 
 


More information about the parrot-commits mailing list