You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Ed Yu <ek...@asgnet.psc.sc.edu> on 2002/07/08 16:50:49 UTC

String tool

Hi all, just wanted to ask if there is any string tool available such
as:

$stringTool.length($myString)
$stringTool.indexOf($myString, "mySubstring")
.
.
.

If not, I'll be willing to contribute one.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ed Yu, IBM Certified Specialist - AIX System Administrator
Information Technology Manager,
University of South Carolina,
Advanced Solutions Group, Physics Dept.,
Columbia, SC 29208
Office (803)777-8831, FAX (803)777-8833, Email ekyu@asgnet.psc.sc.edu


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: String tool

Posted by "Geir Magnusson Jr." <ge...@adeptra.com>.
On 7/8/02 10:50 AM, "Ed Yu" <ek...@asgnet.psc.sc.edu> wrote:

> Hi all, just wanted to ask if there is any string tool available such
> as:
> 
> $stringTool.length($myString)
> $stringTool.indexOf($myString, "mySubstring")
> .
> .
> .
> 
> If not, I'll be willing to contribute one.
> 

All contributions are welcome.  However, take a look at the -tools project
(was the rupert code base) to make sure that isn't there.

Note that you can do the two things above using the regular String class API
:

$myString.length()

Or 

$myString.indexOf("subString")


-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>