use some shared char arrays on string split

This commit is contained in:
UbitUmarov
2022-10-19 01:38:25 +01:00
parent 11005b24e9
commit fddb3761a0
24 changed files with 105 additions and 101 deletions

View File

@@ -247,7 +247,7 @@ namespace OpenSim.Region.CoreModules.Framework.Library
private string GetInventoryPathFromName(string name)
{
string[] parts = name.Split(new char[] { ' ' });
string[] parts = name.Split();
if (parts.Length == 3)
{
name = string.Empty;

View File

@@ -117,7 +117,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
// This is it! Let's ask the other world
if (words[0].Contains("."))
{
string[] names = words[0].Split(new char[] { '.' });
string[] names = words[0].Split(Util.SplitDotArray);
if (names.Length >= 2)
{
string uriStr = "http://" + words[1];