Version 3.3.1.2

StringUtilities class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class StringUtilities
Not yet documented.
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)
Not yet documented.
public static string NicifyByteSize(int bytes, int decimals = 1)
Parameters
System.Int32 bytes

Not yet documented.

System.Int32 decimals

Not yet documented.

Returns
System.String

Not yet documented.

NumberAwareStringCompare(String, String, Boolean, Boolean, Boolean)
Compares two strings in a number-aware manner, IE, "[2] Foo" is considered to come before "[10] Bar".
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