Esempio n. 1
0
 public static object Trim(object x)
 {
     if (IsType.String(x))
     {
         return(Strings.Trim((string)x));
     }
     return(null);
 }
Esempio n. 2
0
 public static object Substring(object x, object y)
 {
     if (IsType.String(x) && IsType.AnyInt(y))
     {
         return(Strings.Substring((string)x, Integers.ToInteger(y)));
     }
     return(null);
 }
Esempio n. 3
0
 public static object GetLength(object x)
 {
     if (IsType.String(x))
     {
         return(Strings.GetLength((string)x));
     }
     return(null);
 }
Esempio n. 4
0
        public static object Substring(object x, object y, object z)
        {
            if (!IsType.String(x) || !AreTypes.AnyInt(y, z))
            {
                return(null);
            }
            var r = Strings.Substring((string)x, Integers.ToInteger(y), Integers.ToInteger(z));

            return(r);
        }