From 913e59eca0a5ba9515bb4b66012da960c8d64ec0 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 19 Jun 2022 17:44:14 +0700 Subject: [PATCH] Add `Parse()` method for `BaseText` --- sources/Text/BaseText.uc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/Text/BaseText.uc b/sources/Text/BaseText.uc index 1c62fde..715a204 100644 --- a/sources/Text/BaseText.uc +++ b/sources/Text/BaseText.uc @@ -1556,6 +1556,17 @@ public function MutableText IntoMutableText() 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 { STRING_SEPARATOR_FORMAT = " "