**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / StringPrototype.cs
blob796c20742e1b70609b24e4d890020904fa68a550
1 //
2 // StringPrototype.cs:
3 //
4 // Author:
5 // Cesar Lopez Nataren (cesar@ciencias.unam.mx)
6 //
7 // (C) 2003, Cesar Lopez Nataren
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System;
32 using Microsoft.JScript.Vsa;
34 namespace Microsoft.JScript {
36 public class StringPrototype : StringObject {
38 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_anchor)]
39 public static string anchor (object thisObj, object anchorName)
41 throw new NotImplementedException ();
44 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_big)]
45 public static string big (object thisObj)
47 throw new NotImplementedException ();
50 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_blink)]
51 public static string blink (object thisObj)
53 throw new NotImplementedException ();
56 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_bold)]
57 public static string bold (object thisObj)
59 throw new NotImplementedException ();
62 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_charAt)]
63 public static string charAt (object thisObj, double pos)
65 throw new NotImplementedException ();
68 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_charCodeAt)]
69 public static object charCodeAt (object thisObj, double pos)
71 throw new NotImplementedException ();
74 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.String_concat)]
75 public static string concat (object thisObj, params object [] args)
77 throw new NotImplementedException ();
81 public static StringConstructor constructor {
82 get { throw new NotImplementedException (); }
85 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_fixed)]
86 public static string @fixed (object thisObj)
88 throw new NotImplementedException ();
91 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_fontcolor)]
92 public static string fontcolor (object thisObj, object colorName)
94 throw new NotImplementedException ();
97 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_fontsize)]
98 public static string fontsize (object thisObj, object fontsize)
100 throw new NotImplementedException ();
103 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_indexOf)]
104 public static int indexOf (object thisObj, object searchString, double position)
106 throw new NotImplementedException ();
109 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_italics)]
110 public static string italics (object thisObj)
112 throw new NotImplementedException ();
115 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_lastIndexOf)]
116 public static int lastIndexOf (object thisobj, object searchString, double position)
118 throw new NotImplementedException ();
121 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_link)]
122 public static string link (object thisObj, object linkRef)
124 throw new NotImplementedException ();
127 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_localeCompare)]
128 public static int localeCompare (object thisObj, object thatObj)
130 throw new NotImplementedException ();
133 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasEngine, JSBuiltin.String_match)]
134 public static object match (object thisObj, VsaEngine engine, object regExp)
136 throw new NotImplementedException ();
139 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_replace)]
140 public static string replace (object thisObj, object regExp, object replacement)
142 throw new NotImplementedException ();
145 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasEngine, JSBuiltin.String_search)]
146 public static int search (object thisObj, VsaEngine engine, object regExp)
148 throw new NotImplementedException ();
151 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_slice)]
152 public static string slice (object thisObj, double start, object end)
154 throw new NotImplementedException ();
157 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_small)]
158 public static string small (object thisObj)
160 throw new NotImplementedException ();
163 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasEngine, JSBuiltin.String_split)]
164 public static ArrayObject split (object thisObj, VsaEngine engine,
165 object separator, object limit)
167 throw new NotImplementedException ();
170 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_strike)]
171 public static string strike (object thisOBj)
173 throw new NotImplementedException ();
176 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_sub)]
177 public static string sub (object thisObj)
179 throw new NotImplementedException ();
182 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_substr)]
183 public static string substr (object thisObj, double start, object count)
185 throw new NotImplementedException ();
188 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_substring)]
189 public static string substring (object thisObj, double start, object end)
191 throw new NotImplementedException ();
194 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_sup)]
195 public static string sup (object thisObj)
197 throw new NotImplementedException ();
200 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_toLocaleLowerCase)]
201 public static string toLocaleLowerCase (object thisObj)
203 throw new NotImplementedException ();
206 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_toLocaleUpperCase)]
207 public static string toLocaleUpperCase (object thisObj)
209 throw new NotImplementedException ();
212 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_toLowerCase)]
213 public static string toLowerCase (object thisObj)
215 throw new NotImplementedException ();
218 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_toString)]
219 public static string toString (object thisObj)
221 throw new NotImplementedException ();
224 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_toUpperCase)]
225 public static string toUpperCase (object thisObj)
227 throw new NotImplementedException ();
230 [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_valueOf)]
231 public static object valueOf (object thisObj)
233 throw new NotImplementedException ();