Beispiel #1
0
 public int LastIndexOf(CompressedString x)
 {
     if (x is null)
     {
         return(-1);
     }
     return(Value.LastIndexOf(x.Value, StringComparison.OrdinalIgnoreCase));
 }
Beispiel #2
0
        public CompressedString TrimEnd(CompressedString trimText)
        {
            if ((!string.IsNullOrEmpty(trimText)) && EndsWith(trimText))
            {
                return(Substring(0, Length - trimText.Length));
            }

            return(this);
        }
Beispiel #3
0
        public CompressedString TrimStart(CompressedString trimText)
        {
            if ((!string.IsNullOrEmpty(trimText)) && StartsWith(trimText))
            {
                return(Substring(trimText.Length));
            }

            return(this);
        }
Beispiel #4
0
 public CompressedString Replace(CompressedString x, CompressedString y)
 {
     return(Value.Replace(x.Value, y.Value) !);
 }
Beispiel #5
0
 public CompressedString Trim(CompressedString trimText)
 {
     return(TrimStart(trimText).TrimEnd(trimText));
 }
Beispiel #6
0
 public CompressedString(CompressedString compressed)
 {
     m_Value = compressed.m_Value;
 }