From 874a95602d9099061c3f4ab47776921d0f5d7dbc Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 8 Aug 2022 18:55:12 +0700 Subject: [PATCH] Change naming of `BaseText` -> `string` methods --- sources/Data/Collections/Collection.uc | 4 ++-- sources/Text/TextAPI.uc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/Data/Collections/Collection.uc b/sources/Data/Collections/Collection.uc index f0db70a..a6dafb3 100644 --- a/sources/Data/Collections/Collection.uc +++ b/sources/Data/Collections/Collection.uc @@ -450,7 +450,7 @@ public final function string GetFormattedStringBy( } asText = BaseText(result); if (asText != none) { - return _.text.ToFormattedString(asText); + return _.text.IntoFormattedString(asText); } _.memory.Free(result); return defaultValue; @@ -805,7 +805,7 @@ public final function string GetFormattedStringByJSON( } asText = BaseText(result); if (asText != none) { - return _.text.ToFormattedString(asText); + return _.text.IntoFormattedString(asText); } _.memory.Free(result); return defaultValue; diff --git a/sources/Text/TextAPI.uc b/sources/Text/TextAPI.uc index dbeb43d..9424298 100644 --- a/sources/Text/TextAPI.uc +++ b/sources/Text/TextAPI.uc @@ -336,7 +336,7 @@ public final function string IntoString(/*take*/ BaseText toConvert) * @return `string` representation of passed `BaseText` as a colored `string`. * Empty `string`, if `toConvert == none`. */ -public final function string ToColoredString(/*take*/ Text toConvert) +public final function string IntoColoredString(/*take*/ BaseText toConvert) { local string result; if (toConvert != none) { @@ -358,7 +358,7 @@ public final function string ToColoredString(/*take*/ Text toConvert) * @return `string` representation of passed `BaseText` as a formatted `string`. * Empty `string`, if `toConvert == none`. */ -public final function string ToFormattedString(/*take*/ BaseText toConvert) +public final function string IntoFormattedString(/*take*/ BaseText toConvert) { local string result; if (toConvert != none) {