Changeset 2846 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Nov 23, 2002, 11:49:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r2800 r2846 552 552 } 553 553 554 uint32_t UString::toUInt32(bool *ok) const 555 { 556 double d = toDouble(); 557 bool b = true; 558 559 if (isNaN(d) || d != static_cast<uint32_t>(d)) { 560 b = false; 561 d = 0; 562 } 563 564 if (ok) 565 *ok = b; 566 567 return static_cast<uint32_t>(d); 568 } 569 554 570 int UString::find(const UString &f, int pos) const 555 571 {
Note:
See TracChangeset
for help on using the changeset viewer.