Browse Source

Add `Parse()` method for `BaseText`

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
913e59eca0
  1. 11
      sources/Text/BaseText.uc

11
sources/Text/BaseText.uc

@ -1556,6 +1556,17 @@ public function MutableText IntoMutableText()
return none; return none;
} }
/**
* Creates `Parser` to parse caller `BaseText`.
*
* @return `Parser` that is setup to parse caller `BaseText`.
* Guaranteed to not be `none`.
*/
public final function Parser Parse()
{
return _.text.Parse(self);
}
defaultproperties defaultproperties
{ {
STRING_SEPARATOR_FORMAT = " " STRING_SEPARATOR_FORMAT = " "

Loading…
Cancel
Save