Browse Source

Change naming of `BaseText` -> `string` methods

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
874a95602d
  1. 4
      sources/Data/Collections/Collection.uc
  2. 4
      sources/Text/TextAPI.uc

4
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;

4
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) {

Loading…
Cancel
Save