Changeset 12949 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Feb 23, 2006, 11:52:25 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r12435 r12949 838 838 } 839 839 840 UString &UString::operator=(const UString &str)841 {842 m_rep = str.m_rep;843 return *this;844 }845 846 840 bool UString::is8Bit() const 847 841 { … … 1025 1019 } 1026 1020 1027 // Rule from ECMA 15.2 about what an array index is.1028 // Must exactly match string form of an unsigned integer, and be less than 2^32 - 1.1029 unsigned UString::toArrayIndex(bool *ok) const1030 {1031 unsigned i = toStrictUInt32(ok);1032 if (i >= 0xFFFFFFFFU && ok)1033 *ok = false;1034 return i;1035 }1036 1037 1021 int UString::find(const UString &f, int pos) const 1038 1022 {
Note:
See TracChangeset
for help on using the changeset viewer.