Version 3.0.4.0

StringUtilities class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class StringUtilities
Inheritance
  • System.Object
  • StringUtilities

Methods

FastEndsWith(String, String)
public static bool FastEndsWith(this string str, string endsWith)
Parameters
System.String str

System.String endsWith

Returns
System.Boolean

NicifyByteSize(Int32, Int32)
public static string NicifyByteSize(int bytes, int decimals = 1)
Parameters
System.Int32 bytes

System.Int32 decimals

Returns
System.String

NumberAwareStringCompare(String, String, Boolean, Boolean, Boolean)
public static int NumberAwareStringCompare(string a, string b, bool ignoreLeadingZeroes = true, bool ignoreWhiteSpace = true, bool ignoreCase = false)
Parameters
System.String a

System.String b

System.Boolean ignoreLeadingZeroes

System.Boolean ignoreWhiteSpace

System.Boolean ignoreCase

Returns
System.Int32