Esempio n. 1
0
void StringObject::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
{
  int size = internalValue()->value().size();
  for (int i = 0; i < size; i++)
    propertyNames.add(Identifier(exec, UString::from(i)));
  return JSObject::getPropertyNames(exec, propertyNames);
}
Esempio n. 2
0
void StringObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, bool includeNonEnumerable)
{
    int size = internalValue()->value().size();
    for (int i = 0; i < size; ++i)
        propertyNames.add(Identifier(exec, UString::from(i)));
    return JSObject::getOwnPropertyNames(exec, propertyNames);
}
Esempio n. 3
0
void StringObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)
{
    int size = internalValue()->length();
    for (int i = 0; i < size; ++i)
        propertyNames.add(Identifier(exec, UString::from(i)));
    if (mode == IncludeDontEnumProperties)
        propertyNames.add(exec->propertyNames().length);
    return JSObject::getOwnPropertyNames(exec, propertyNames, mode);
}
Esempio n. 4
0
bool StringObject::deleteProperty(ExecState* exec, const Identifier& propertyName)
{
    if (propertyName == exec->propertyNames().length)
        return false;
    bool isStrictUInt32;
    unsigned i = propertyName.toStrictUInt32(&isStrictUInt32);
    if (isStrictUInt32 && internalValue()->canGetIndex(i))
        return false;
    return JSObject::deleteProperty(exec, propertyName);
}
void ZLWin32ApplicationWindow::TextEditParameter::setValueList(const std::vector<std::string> &values) {
	std::string oldValue = internalValue();

	if (myParameterItem.type() == ZLToolbar::Item::TEXT_FIELD) {
		return;
	}

	SendMessage(myComboBox, CB_RESETCONTENT, 0, 0);

	ZLUnicodeUtil::Ucs2String buffer;
	for (std::vector<std::string>::const_iterator it = values.begin(); it != values.end(); ++it) {
		SendMessage(myComboBox, CB_ADDSTRING, 0, (LPARAM)::wchar(::createNTWCHARString(buffer, *it)));
	}

	if (values.size() > 0) {
		SendMessage(myComboBox, CB_SETMINVISIBLE, std::min((int)values.size(), 7), 0);
	}

	internalSetValue(oldValue);
}
Esempio n. 6
0
bool StringObject::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
{
    if (internalValue()->getStringPropertyDescriptor(exec, propertyName, descriptor))
        return true;    
    return JSObject::getOwnPropertyDescriptor(exec, propertyName, descriptor);
}
Esempio n. 7
0
bool StringObject::getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot)
{
    if (internalValue()->getStringPropertySlot(exec, propertyName, slot))
        return true;    
    return JSObject::getOwnPropertySlot(exec, Identifier::from(exec, propertyName), slot);
}
Esempio n. 8
0
bool StringObject::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
{
    if (internalValue()->getStringPropertySlot(exec, propertyName, slot))
        return true;
    return JSObject::getOwnPropertySlot(exec, propertyName, slot);
}
Esempio n. 9
0
JSString* StringObject::toThisJSString(ExecState*)
{
    return internalValue();
}
Esempio n. 10
0
UString StringObject::toThisString(ExecState*) const
{
    return internalValue()->value();
}
Esempio n. 11
0
 virtual boost::units::quantity<InternalUnit, NumericType> toInternalValue(NumericType value) const
 {
     boost::units::quantity<InternalUnit, NumericType> internalValue(value * Unit());
     return internalValue;
 }
Esempio n. 12
0
const std::string &ZLApplicationWindow::VisualParameter::value() const {
	myValue = internalValue();
	return myValue;
}
Esempio n. 13
0
JSValue* NumberObject::getJSNumber()
{
    return internalValue();
}