예제 #1
0
 unsigned 
 ValueIteratorBase::index () const
 {
   const Value::CZString czstring = (*current_).first;
   if (!czstring.c_str ())
     return czstring.index ();
   return unsigned (-1);
 }
예제 #2
0
Value ValueIteratorBase::key() const {
  const Value::CZString czstring = (*current_).first;
  if (czstring.data()) {
    if (czstring.isStaticString())
      return Value(StaticString(czstring.data()));
    return Value(czstring.data(), czstring.data() + czstring.length());
  }
  return Value(czstring.index());
}
예제 #3
0
UInt ValueIteratorBase::index() const {
  const Value::CZString czstring = (*current_).first;
  if (!czstring.data())
    return czstring.index();
  return Value::UInt(-1);
}