Lines Matching refs:str

42         public static char charAt( string str, int index )
44 return str[index];
48 public static bool endsWith( string str, string value )
50 return str.EndsWith( value );
54 public static int indexOf( string str, char value )
56 return str.IndexOf( value );
60 public static int indexOf( string str, char value, int startIndex )
62 return str.IndexOf( value, startIndex );
66 public static int indexOf( string str, string value )
68 return str.IndexOf( value );
72 public static int indexOf( string str, string value, int startIndex )
74 return str.IndexOf( value, startIndex );
78 public static int lastIndexOf( string str, char value )
80 return str.LastIndexOf( value );
84 public static int lastIndexOf( string str, string value )
86 return str.LastIndexOf( value );
90 public static int length( string str )
92 return str.Length;
96 public static string replace( string str, char oldValue, char newValue )
98 int index = str.IndexOf( oldValue );
100 return str;
102 System.Text.StringBuilder builder = new StringBuilder( str );
107 public static string replaceAll( string str, string regex, string newValue )
109 return System.Text.RegularExpressions.Regex.Replace( str, regex, newValue );
112 public static string replaceFirst( string str, string regex, string replacement )
114 return System.Text.RegularExpressions.Regex.Replace( str, regex, replacement );
119 public static bool startsWith( string str, string value )
121 return str.StartsWith( value );
126 public static string substring( string str, int startOffset )
128 return str.Substring( startOffset );
131 public static string substring( string str, int startOffset, int endOffset )
133 return str.Substring( startOffset, endOffset - startOffset );
138 public static char[] toCharArray( string str )
140 return str.ToCharArray();
144 public static string toUpperCase( string str )
146 return str.ToUpperInvariant();
150 public static string trim( string str )
152 return str.Trim();