Logo Search packages:      
Sourcecode: osb-jscore version File versions  Download package

unsigned KJS::UString::toArrayIndex ( bool *  ok = 0  )  const

Attempts an conversion to an array index. The "ok" boolean will be set to true if it is a valid array index according to the rule from ECMA 15.2 about what an array index is. It must exactly match the string form of an unsigned integer, and be less than 2^32 - 1.

Definition at line 981 of file ustring.cpp.

  unsigned i = toStrictUInt32(ok);
  if (i >= 0xFFFFFFFFU && ok)
    *ok = false;
  return i;

Generated by  Doxygen 1.6.0   Back to index