Namespace: | Sirenix.Utilities.Editor |
Assembly: | Sirenix.Utilities.Editor |
public struct StringSlice : IEquatable<string>, IEquatable<StringSlice>
public StringSlice(string str)
System.String | str |
public StringSlice(string str, int index, int length)
System.String | str | |
System.Int32 | index | |
System.Int32 | length |
public int Index
public int Length
public string String
public char this[int index] { get; }
System.Int32 | index |
public bool Contains(string str)
System.String | str |
System.Boolean |
public bool EndsWith(ref string str)
System.String | str |
System.Boolean |
public override bool Equals(object obj)
System.Object | obj |
System.Boolean |
public bool Equals(string other)
System.String | other |
System.Boolean |
public int FirstIndexOf(char c)
System.Char | c |
System.Int32 |
public override int GetHashCode()
System.Int32 |
public int LastIndexOf(char c)
System.Char | c |
System.Int32 |
public StringSlice Slice(int index, int length)
System.Int32 | index | |
System.Int32 | length |
StringSlice |
public bool StartsWith(string str)
System.String | str |
System.Boolean |
public override string ToString()
System.String |
public StringSlice Trim()
StringSlice |
public StringSlice TrimEnd()
StringSlice |
public StringSlice TrimStart()
StringSlice |
public bool TryParseToInt(out int result)
System.Int32 | result |
System.Boolean |
public static bool operator ==(StringSlice a, StringSlice b)
StringSlice | a | |
StringSlice | b |
System.Boolean |
public static bool operator ==(StringSlice slice, string str)
StringSlice | slice | |
System.String | str |
System.Boolean |
public static explicit operator string (StringSlice slice)
StringSlice | slice |
System.String |
public static implicit operator StringSlice(string str)
System.String | str |
StringSlice |
public static bool operator !=(StringSlice a, StringSlice b)
StringSlice | a | |
StringSlice | b |
System.Boolean |
public static bool operator !=(StringSlice fs, string str)
StringSlice | fs | |
System.String | str |
System.Boolean |