/[jscoverage]/trunk/js/jsregexp.h
ViewVC logotype

Diff of /trunk/js/jsregexp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC
# Line 1  Line 1 
1  /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-  /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2   *   *
3   * ***** BEGIN LICENSE BLOCK *****   * ***** BEGIN LICENSE BLOCK *****
4   * Version: MPL 1.1/GPL 2.0/LGPL 2.1   * Version: MPL 1.1/GPL 2.0/LGPL 2.1
# Line 66  Line 66 
66  };  };
67    
68  extern JS_FRIEND_API(void)  extern JS_FRIEND_API(void)
69  js_SaveRegExpStatics(JSContext *cx, JSRegExpStatics *statics,  js_SaveAndClearRegExpStatics(JSContext *cx, JSRegExpStatics *statics,
70                       JSTempValueRooter *tvr);                               JSTempValueRooter *tvr);
71    
72  extern JS_FRIEND_API(void)  extern JS_FRIEND_API(void)
73  js_RestoreRegExpStatics(JSContext *cx, JSRegExpStatics *statics,  js_RestoreRegExpStatics(JSContext *cx, JSRegExpStatics *statics,
# Line 185  Line 185 
185  extern JSObject *  extern JSObject *
186  js_CloneRegExpObject(JSContext *cx, JSObject *obj, JSObject *parent);  js_CloneRegExpObject(JSContext *cx, JSObject *obj, JSObject *parent);
187    
188  /*  #ifdef __cplusplus /* Allow inclusion from LiveConnect C files. */
  * Get and set the per-object (clone or clone-parent) lastIndex slot.  
  */  
 extern JSBool  
 js_GetLastIndex(JSContext *cx, JSObject *obj, jsdouble *lastIndex);  
189    
190  extern JSBool  const uint32 JSSLOT_REGEXP_LAST_INDEX = JSSLOT_PRIVATE + 1;
191  js_SetLastIndex(JSContext *cx, JSObject *obj, jsdouble lastIndex);  const uint32 REGEXP_CLASS_FIXED_RESERVED_SLOTS = 1;
192    
193    static inline void
194    js_ClearRegExpLastIndex(JSObject *obj)
195    {
196        JS_ASSERT(obj->getClass() == &js_RegExpClass);
197        obj->fslots[JSSLOT_REGEXP_LAST_INDEX] = JSVAL_ZERO;
198    }
199    
200    #endif /* __cplusplus */
201    
202    /* Return whether the given character array contains RegExp meta-characters. */
203    extern bool
204    js_ContainsRegExpMetaChars(const jschar *chars, size_t length);
205    
206  JS_END_EXTERN_C  JS_END_EXTERN_C
207    

Legend:
Removed from v.460  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.24