Home | History | Annotate | Download | only in experimental

Lines Matching full:args

82 v8::Handle<v8::Value> I18NExtension::JSLocale(const v8::Arguments& args) {
86 if (args.Length() == 1 && args[0]->IsString()) {
87 locale_name = *v8::String::Utf8Value(args[0]->ToString());
113 const v8::Arguments& args) {
134 const v8::Arguments& args) {
135 if (!args.Length() || !args[0]->IsString()) {
140 std::string locale_name = *v8::String::Utf8Value(args[0]->ToString());
152 const v8::Arguments& args) {
153 if (!args.Length() || !args[0]->IsString()) {
158 std::string locale_name = *v8::String::Utf8Value(args[0]->ToString());
170 static v8::Handle<v8::Value> GetDisplayItem(const v8::Arguments& args,
172 if (args.Length() != 2 || !args[0]->IsString() || !args[1]->IsString()) {
176 std::string base_locale = *v8::String::Utf8Value(args[0]->ToString());
179 icu::Locale(*v8::String::Utf8Value(args[1]->ToString()));
202 const v8::Arguments& args) {
203 return GetDisplayItem(args, "language");
207 const v8::Arguments& args) {
208 return GetDisplayItem(args, "script");
212 const v8::Arguments& args) {
213 return GetDisplayItem(args, "region");
216 v8::Handle<v8::Value> I18NExtension::JSDisplayName(const v8::Arguments& args) {
217 return GetDisplayItem(args, "name");