Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  String.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef builtin_String_h
#define builtin_String_h

#include "NamespaceImports.h"

#include "js/RootingAPI.h"
#include "js/Value.h"

namespace js {

class ArrayObject;
class GlobalObject;
class LanguageId;

/* Initialize the String class, returning its prototype object. */
extern JSObject* InitStringClass(JSContext* cx, Handle<GlobalObject*> global);

// String methods exposed so they can be installed in the self-hosting global.

extern bool str_fromCodePoint(JSContext* cx, unsigned argc, Value* vp);

extern bool str_includes(JSContext* cx, unsigned argc, Value* vp);

extern bool str_indexOf(JSContext* cx, unsigned argc, Value* vp);

extern bool str_toString(JSContext* cx, unsigned argc, Value* vp);

extern bool str_codePointAt(JSContext* cx, unsigned argc, Value* vp);

ArrayObject* StringSplitString(JSContext* cx, HandleString str,
                               HandleString sep, uint32_t limit);

JSString* StringFlatReplaceString(JSContext* cx, HandleString string,
                                  HandleString pattern,
                                  HandleString replacement);

JSString* str_replace_string_raw(JSContext* cx, HandleString string,
                                 HandleString pattern,
                                 HandleString replacement);

JSString* str_replaceAll_string_raw(JSContext* cx, HandleString string,
                                    HandleString pattern,
                                    HandleString replacement);

extern bool StringIncludes(JSContext* cx, HandleString string,
                           HandleString searchString, bool* result);

extern bool StringIndexOf(JSContext* cx, HandleString string,
                          HandleString searchString, int32_t* result);

extern bool StringLastIndexOf(JSContext* cx, HandleString string,
                              HandleString searchString, int32_t* result);

extern bool StringStartsWith(JSContext* cx, HandleString string,
                             HandleString searchString, bool* result);

extern bool StringEndsWith(JSContext* cx, HandleString string,
                           HandleString searchString, bool* result);

extern JSLinearString* StringToLowerCase(JSContext* cx, JSString* string);

extern JSLinearString* StringToUpperCase(JSContext* cx, JSString* string);

extern JSString* StringTrim(JSContext* cx, HandleString string);

extern JSString* StringTrimStart(JSContext* cx, HandleString string);

extern JSString* StringTrimEnd(JSContext* cx, HandleString string);

extern bool StringConstructor(JSContext* cx, unsigned argc, Value* vp);

extern bool FlatStringMatch(JSContext* cx, unsigned argc, Value* vp);

extern bool FlatStringSearch(JSContext* cx, unsigned argc, Value* vp);

extern JSLinearString* StringFromCharCode(JSContext* cx, int32_t charCode);

extern JSLinearString* StringFromCodePoint(JSContext* cx, char32_t codePoint);

#if JS_HAS_INTL_API
bool LocaleHasDefaultCaseMapping(LanguageId locale);
#endif

/* namespace js */

#endif /* builtin_String_h */

Messung V0.5 in Prozent
C=90 H=98 G=94

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002