21 lines
683 B
C#
Executable File
21 lines
683 B
C#
Executable File
// Copyright (c) 2024 Synty Studios Limited. All rights reserved.
|
|
//
|
|
// Use of this software is subject to the terms and conditions of the Synty Studios End User Licence Agreement (EULA)
|
|
// available at: https://syntystore.com/pages/end-user-licence-agreement
|
|
//
|
|
// For additional details, see the LICENSE.MD file bundled with this software.
|
|
|
|
using System;
|
|
using System.Linq;
|
|
|
|
namespace Synty.SidekickCharacters.Utils
|
|
{
|
|
public static class StringUtils
|
|
{
|
|
public static string AddSpacesBeforeCapitalLetters(string baseString)
|
|
{
|
|
return string.Concat(baseString.Select(c => Char.IsUpper(c) ? " " + c : c.ToString())).TrimStart(' ');
|
|
}
|
|
}
|
|
}
|