Improve LocalizedStringTable editor

This commit is contained in:
Wojtek Figat
2021-04-22 13:28:52 +02:00
parent aa07d3b2fa
commit af34bafc5a
3 changed files with 133 additions and 3 deletions

View File

@@ -44,6 +44,21 @@ namespace FlaxEngine.Utilities
}
}
/// <summary>
/// Checks if the text is multiline.
/// </summary>
/// <param name="str">Text to check.</param>
/// <returns>True if text is a multiline, otherwise false.</returns>
public static bool IsMultiline(this string str)
{
for (int i = 0; i < str.Length; i++)
{
if (str[i] == '\n')
return true;
}
return false;
}
/// <summary>
/// Splits string into lines
/// </summary>