corpora.markup
Class ExtendedString

java.lang.Object
  |
  +--corpora.markup.ExtendedString

public class ExtendedString
extends java.lang.Object


Constructor Summary
ExtendedString(java.lang.String string)
          Initializes a newly created ExtendedString - a copy of the parameter 'string'.
 
Method Summary
 java.lang.String replaceSubstr(java.lang.String from, java.lang.String to)
          Replaces each substring of this string that matches the given substring 'from' with the given replacement substring 'to'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedString

public ExtendedString(java.lang.String string)
Initializes a newly created ExtendedString - a copy of the parameter 'string'.

Parameters:
string - a String.
Method Detail

replaceSubstr

public java.lang.String replaceSubstr(java.lang.String from,
                                      java.lang.String to)
Replaces each substring of this string that matches the given substring 'from' with the given replacement substring 'to'.

Parameters:
from - substring to be replaced
to - replacement substring.
Returns:
the resulting string.