Lines Matching refs:str

7468 __attribute__((weak)) __attribute__((visibility("default"))) char* moz_xstrdup(const char* str)
7476 __attribute__((weak)) __attribute__((visibility("default"))) char* moz_xstrndup(const char* str, size_t strsize)
50899 explicit GCCellPtr(JSFlatString* str) : ptr(checkedCast(str, JS::TraceKind::String)) { }
51080 GetStringZone(JSString* str)
51082 return js::gc::detail::GetGCThingZone(uintptr_t(str));
77641 void setString(JSString* str) {
77643 data.asBits = bitsFromTagAndPayload(JSVAL_TAG_STRING, PayloadType(str));
78201 StringValue(JSString* str)
78204 v.setString(str);
78534 void setString(JSString* str) { this->value().setString(str); }
78562 void setString(JSString* str) { setBarriered(JS::StringValue(str)); }
79832 void operator=(const nsAString* str)
79835 mStr = str;
79841 void operator=(const binding_detail::FakeString* str)
79844 mStr = reinterpret_cast<const nsString*>(str);
80431 nsStringBuffer* str = static_cast<nsStringBuffer*>(GetPtr());
80432 if (str) {
80433 aResult.SetStringBuffer(str, str->StorageSize()/sizeof(char16_t) - 1);
83990 virtual nsresult GetAsStringWithSize(uint32_t *size, char * *str) = 0;
83993 virtual nsresult GetAsWStringWithSize(uint32_t *size, char16_t * *str) = 0;
84078 virtual nsresult SetAsStringWithSize(uint32_t size, const char * str) = 0;
84081 virtual nsresult SetAsWStringWithSize(uint32_t size, const char16_t * str) = 0;
86950 INTERNED_STRING_TO_JSID(JSContext* cx, JSString* str);
97985 JS_WriteString(JSStructuredCloneWriter* w, JS::HandleString str);
98822 size_t (*)(JSString* str, mozilla::MallocSizeOf mallocSizeOf);
98839 JS_StringHasBeenPinned(JSContext* cx, JSString* str);
99724 JS_IsExternalString(JSString* str);
99730 JS_GetExternalStringFinalizer(JSString* str);
101877 JS_AtomizeAndPinJSString(JSContext* cx, JS::HandleString str);
101916 JS_StringEqualsAscii(JSContext* cx, JSString* str, const char* asciiBytes, bool* match);
101919 JS_PutEscapedString(JSContext* cx, char* buffer, size_t size, JSString* str, char quote);
101922 JS_FileEscapedString(FILE* fp, JSString* str, char quote);
101925 JS_GetStringLength(JSString* str);
101928 JS_StringIsFlat(JSString* str);
101932 JS_StringHasLatin1Chars(JSString* str);
101935 JS_GetLatin1StringCharsAndLength(JSContext* cx, const JS::AutoCheckCannotGC& nogc, JSString* str,
101939 JS_GetTwoByteStringCharsAndLength(JSContext* cx, const JS::AutoCheckCannotGC& nogc, JSString* str,
101943 JS_GetStringCharAt(JSContext* cx, JSString* str, size_t index, char16_t* res);
101946 JS_GetFlatStringCharAt(JSFlatString* str, size_t index);
101949 JS_GetTwoByteExternalStringChars(JSString* str);
101952 JS_CopyStringChars(JSContext* cx, mozilla::Range<char16_t> dest, JSString* str);
101955 JS_FlattenString(JSContext* cx, JSString* str);
101958 JS_GetLatin1FlatStringChars(const JS::AutoCheckCannotGC& nogc, JSFlatString* str);
101961 JS_GetTwoByteFlatStringChars(const JS::AutoCheckCannotGC& nogc, JSFlatString* str);
101971 JS_ASSERT_STRING_IS_FLAT(JSString* str)
101974 return (JSFlatString*)str;
101988 JS_FlatStringEqualsAscii(JSFlatString* str, const char* asciiBytes);
101991 JS_PutEscapedFlatString(char* buffer, size_t size, JSFlatString* str, char quote);
101999 JS_NewDependentString(JSContext* cx, JS::HandleString str, size_t start,
102018 JS_EncodeString(JSContext* cx, JSString* str);
102024 JS_EncodeStringToUTF8(JSContext* cx, JS::HandleString str);
102032 JS_GetStringEncodingLength(JSContext* cx, JSString* str);
102035 JS_EncodeStringToBuffer(JSContext* cx, JSString* str, char* buffer, size_t length);
102040 JSAutoByteString(JSContext* cx, JSString* str
102042 : mBytes(JS_EncodeString(cx, str))
102064 char* encodeLatin1(JSContext* cx, JSString* str) {
102067 mBytes = JS_EncodeString(cx, str);
102071 char* encodeUtf8(JSContext* cx, JS::HandleString str) {
102074 mBytes = JS_EncodeStringToUTF8(cx, str);
102109 NewAddonId(JSContext* cx, JS::HandleString str);
102218 JS_ParseJSON(JSContext* cx, JS::HandleString str, JS::MutableHandleValue vp);
102225 JS_ParseJSONWithReviver(JSContext* cx, JS::HandleString str, JS::HandleValue reviver,
102860 JS_IsIdentifier(JSContext* cx, JS::HandleString str, bool* isIdentifier);
114973 PL_strlen(const char *str);
114976 PL_strnlen(const char *str, PRUint32 max);
118684 DumpString(JSString* str, FILE* fp);
118712 extern void DumpString(JSString* str);
119226 IsExternalString(JSString* str, const JSStringFinalizer** fin, const char16_t** chars)
119229 String* s = reinterpret_cast<String*>(str);
119241 StringToLinearStringSlow(JSContext* cx, JSString* str);
119244 StringToLinearString(JSContext* cx, JSString* str)
119247 String* s = reinterpret_cast<String*>(str);
119249 return StringToLinearStringSlow(cx, str);
119250 return reinterpret_cast<JSLinearString*>(str);
119313 StringIsArrayIndex(JSLinearString* str, uint32_t* indexp);
120306 JS::RootedString str;
127290 JSString* str = JS_NewMaybeExternalString(cx,
127293 if (!str) {
127296 rval.setString(str);
127311 cache->mString = str;
127319 static __attribute__((always_inline)) inline bool IsLiteral(JSString* str)
127321 return JS_IsExternalString(str) &&
127322 JS_GetExternalStringFinalizer(str) == &sLiteralFinalizer;
127325 static __attribute__((always_inline)) inline bool IsDOMString(JSString* str)
127327 return JS_IsExternalString(str) &&
127328 JS_GetExternalStringFinalizer(str) == &sDOMStringFinalizer;
127354 bool NonVoidStringToJsval(JSContext* cx, nsAString& str, JS::MutableHandleValue rval);
127355 inline bool StringToJsval(JSContext* cx, nsAString& str, JS::MutableHandleValue rval)
127358 if (str.IsVoid()) {
127362 return NonVoidStringToJsval(cx, str, rval);
127366 NonVoidStringToJsval(JSContext* cx, const nsAString& str, JS::MutableHandleValue rval)
127369 if (!mutableCopy.Assign(str, mozilla::fallible)) {
127377 StringToJsval(JSContext* cx, const nsAString& str, JS::MutableHandleValue rval)
127380 if (!mutableCopy.Assign(str, mozilla::fallible)) {
127391 bool NonVoidStringToJsval(JSContext* cx, mozilla::dom::DOMString& str,
127394 if (!str.HasStringBuffer()) {
127396 return NonVoidStringToJsval(cx, str.AsAString(), rval);
127399 uint32_t length = str.StringBufferLength();
127405 nsStringBuffer* buf = str.StringBuffer();
127413 str.RelinquishBufferOwnership();
127419 bool StringToJsval(JSContext* cx, mozilla::dom::DOMString& str,
127422 if (str.IsNull()) {
127426 return NonVoidStringToJsval(cx, str, rval);
144507 JSLinearString* str = js::AtomToLinearString(JSID_TO_ATOM(id));
144511 if (js::LinearStringHasLatin1Chars(str)) {
144512 s = *js::GetLatin1LinearStringChars(nogc, str);
144514 s = *js::GetTwoByteLinearStringChars(nogc, str);
144521 return js::StringIsArrayIndex(str, &i) ? i : (4294967295U);
151533 void profiler_log(const char *str);
152889 bool init(JSContext* aContext, JSString* str)
152891 return AssignJSString(aContext, *this, str);
152901 JS::Rooted<JSString*> str(aContext);
152903 str = JS_NewStringCopyZ(aContext, "[Object]");
152906 str = JS::ToString(aContext, rootedVal);
152909 return str && init(aContext, str);
153832 JSString* str = rval.toString();
153833 if (JS::GetStringZone(str) != js::GetContextZone(cx)) {
154213 EnumValueNotFound(JSContext* cx, JS::HandleString str, const char* type,
154218 EnumValueNotFound<false>(JSContext* cx, JS::HandleString str, const char* type,
154227 EnumValueNotFound<true>(JSContext* cx, JS::HandleString str, const char* type,
154231 if (!deflated.encodeUtf8(cx, str)) {
154271 JS::RootedString str(cx, JS::ToString(cx, v));
154272 if (!str) {
154279 if (js::StringHasLatin1Chars(str)) {
154280 const JS::Latin1Char* chars = JS_GetLatin1StringCharsAndLength(cx, nogc, str,
154287 const char16_t* chars = JS_GetTwoByteStringCharsAndLength(cx, nogc, str,
154299 return EnumValueNotFound<InvalidValueFatal>(cx, str, type, sourceDescription);
154777 if (JSString *str = ::JS_AtomizeAndPinString(cx, chars)) {
154778 id = INTERNED_STRING_TO_JSID(cx, str);
155507 bool NonVoidByteStringToJsval(JSContext *cx, const nsACString &str,
155509 inline bool ByteStringToJsval(JSContext *cx, const nsACString &str,
155512 if (str.IsVoid()) {
155516 return NonVoidByteStringToJsval(cx, str, rval);
155913 JSString* str = JS_AtomizeAndPinString(cx, string);
155914 if (!str)
155916 id = INTERNED_STRING_TO_JSID(cx, str);
159558 str() const
159575 str(const __string_type& __s)
159796 str() const
159797 { return _M_stringbuf.str(); }
159806 str(const __string_type& __s)
159807 { _M_stringbuf.str(__s); }
159891 str() const
159892 { return _M_stringbuf.str(); }
159901 str(const __string_type& __s)
159902 { _M_stringbuf.str(__s); }
159986 str() const
159987 { return _M_stringbuf.str(); }
159996 str(const __string_type& __s)
159997 { _M_stringbuf.str(__s); }
160526 std::string str = mMessage.str();
160527 if (!str.empty()) {
160528 WriteLog(str);
160530 mMessage.str("");
170064 DOMString str;
170065 GetAttribute(aName, str);
170066 str.ToString(aReturn);
177118 nsIAtom* Gecko_AtomAttrValue(RawGeckoElementBorrowed element, nsIAtom* attribute); bool Gecko_HasAttr(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name); bool Gecko_AttrEquals(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str, bool ignoreCase); bool Gecko_AttrDashEquals(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_AttrIncludes(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_AttrHasSubstring(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_AttrHasPrefix(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_AttrHasSuffix(RawGeckoElementBorrowed element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); uint32_t Gecko_ClassOrClassList(RawGeckoElementBorrowed element, nsIAtom** class_, nsIAtom*** classList);
177119 nsIAtom* Gecko_SnapshotAtomAttrValue(const ServoElementSnapshot* element, nsIAtom* attribute); bool Gecko_SnapshotHasAttr(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name); bool Gecko_SnapshotAttrEquals(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str, bool ignoreCase); bool Gecko_SnapshotAttrDashEquals(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_SnapshotAttrIncludes(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_SnapshotAttrHasSubstring(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_SnapshotAttrHasPrefix(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); bool Gecko_SnapshotAttrHasSuffix(const ServoElementSnapshot* element, nsIAtom* ns, nsIAtom* name, nsIAtom* str); uint32_t Gecko_SnapshotClassOrClassList(const ServoElementSnapshot* element, nsIAtom** class_, nsIAtom*** classList);