Home
last modified time | relevance | path

Searched refs:category (Results 1 – 25 of 38) sorted by relevance

12

/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
Dsetlocale.c131 __setlocale(int category, const char *locale) in __setlocale() argument
141 if (category < 0 || category >= _LC_LAST) in __setlocale()
145 return (category ? in __setlocale()
146 current_categories[category] : currentlocale()); in __setlocale()
159 if (category == LC_ALL) { in __setlocale()
167 env = __get_locale_env(category); in __setlocale()
168 (void)strncpyX(new_categories[category], env, in __setlocale()
169 sizeof(new_categories[category])); in __setlocale()
171 } else if (category) { in __setlocale()
172 (void)strncpyX(new_categories[category], locale, in __setlocale()
[all …]
Dsetlocale1.c55 setlocale(int category, const char *locale) in setlocale() argument
60 return __setlocale(category, locale); in setlocale()
Dsetlocale32.c40 __setlocale_mb_len_max_32(int category, const char *locale) in __setlocale_mb_len_max_32() argument
45 return __setlocale(category, locale); in __setlocale_mb_len_max_32()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dwarnings.py15 def warnpy3k(message, category=None, stacklevel=1): argument
21 if category is None:
22 category = DeprecationWarning
23 warn(message, category, stacklevel+1)
25 def _show_warning(message, category, filename, lineno, file=None, line=None): argument
33 file.write(formatwarning(message, category, filename, lineno, line))
40 def formatwarning(message, category, filename, lineno, line=None): argument
42 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
49 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
65 assert isinstance(category, (type, types.ClassType)), \
[all …]
Dlocale.py83 def setlocale(category, value=None): argument
546 def getlocale(category=LC_CTYPE): argument
559 localename = _setlocale(category)
560 if category == LC_ALL and ';' in localename:
564 def setlocale(category, locale=None): argument
579 return _setlocale(category, locale)
581 def resetlocale(category=LC_ALL): argument
589 _setlocale(category, _build_localename(getdefaultlocale()))
2011 for name,category in categories.items():
2013 lang, enc = getlocale(category)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dwarnings.py14 def warnpy3k(message, category=None, stacklevel=1): argument
20 if category is None:
21 category = DeprecationWarning
22 warn(message, category, stacklevel+1)
24 def _show_warning(message, category, filename, lineno, file=None, line=None): argument
29 file.write(formatwarning(message, category, filename, lineno, line))
36 def formatwarning(message, category, filename, lineno, line=None): argument
38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
45 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
61 assert isinstance(category, (type, types.ClassType)), \
[all …]
Dlocale.py75 def setlocale(category, value=None): argument
499 def getlocale(category=LC_CTYPE): argument
512 localename = _setlocale(category)
513 if category == LC_ALL and ';' in localename:
517 def setlocale(category, locale=None): argument
531 return _setlocale(category, locale)
533 def resetlocale(category=LC_ALL): argument
541 _setlocale(category, _build_localename(getdefaultlocale()))
1816 for name,category in categories.items():
1818 lang, enc = getlocale(category)
[all …]
Dstringprep.py13 if unicodedata.category(code) != 'Cn': return False
211 return unicodedata.category(code) == "Zs" and code != u" "
214 return unicodedata.category(code) == "Zs"
218 return ord(code) < 128 and unicodedata.category(code) == "Cc"
224 if unicodedata.category(code) == "Cc": return True
228 return unicodedata.category(code) == "Cc" or \
233 return unicodedata.category(code) == "Co"
244 return unicodedata.category(code) == "Cs"
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
D_warnings.c102 get_filter(PyObject *category, PyObject *text, Py_ssize_t lineno, in get_filter() argument
147 is_subclass = PyObject_IsSubclass(category, cat); in get_filter()
221 update_registry(PyObject *registry, PyObject *text, PyObject *category, in update_registry() argument
231 altkey = PyTuple_Pack(3, text, category, zero); in update_registry()
234 altkey = PyTuple_Pack(2, text, category); in update_registry()
244 *category, PyObject *sourceline) in show_warning() argument
252 name = PyObject_GetAttrString(category, "__name__"); in show_warning()
289 warn_explicit(PyObject *category, PyObject *message, in warn_explicit() argument
322 category = (PyObject*)message->ob_type; in warn_explicit()
326 message = PyObject_CallFunction(category, "O", message); in warn_explicit()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
D_warnings.c102 get_filter(PyObject *category, PyObject *text, Py_ssize_t lineno, in get_filter() argument
147 is_subclass = PyObject_IsSubclass(category, cat); in get_filter()
221 update_registry(PyObject *registry, PyObject *text, PyObject *category, in update_registry() argument
231 altkey = PyTuple_Pack(3, text, category, zero); in update_registry()
234 altkey = PyTuple_Pack(2, text, category); in update_registry()
244 *category, PyObject *sourceline) in show_warning() argument
252 name = PyObject_GetAttrString(category, "__name__"); in show_warning()
289 warn_explicit(PyObject *category, PyObject *message, in warn_explicit() argument
322 category = (PyObject*)message->ob_type; in warn_explicit()
326 message = PyObject_CallFunction(category, "O", message); in warn_explicit()
[all …]
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/
Dlldbefi.py315 category = debugger.GetDefaultCategory()
317 category.AddTypeFormat(lldb.SBTypeNameSpecifier("BOOLEAN"), FormatBool)
320 category.AddTypeFormat(lldb.SBTypeNameSpecifier("UINT64"), FormatHex)
321 category.AddTypeFormat(lldb.SBTypeNameSpecifier("INT64"), FormatHex)
322 category.AddTypeFormat(lldb.SBTypeNameSpecifier("UINT32"), FormatHex)
323 category.AddTypeFormat(lldb.SBTypeNameSpecifier("INT32"), FormatHex)
324 category.AddTypeFormat(lldb.SBTypeNameSpecifier("UINT16"), FormatHex)
325 category.AddTypeFormat(lldb.SBTypeNameSpecifier("INT16"), FormatHex)
326 category.AddTypeFormat(lldb.SBTypeNameSpecifier("UINT8"), FormatHex)
327 category.AddTypeFormat(lldb.SBTypeNameSpecifier("INT8"), FormatHex)
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/
Dlocale.h185 char *setlocale(int category, const char *locale);
186 char *__setlocale(int category, const char *locale);
188 char *setlocale(int category, const char *locale) __RENAME(__setlocale_mb_len_max_32);
191 char *__setlocale_mb_len_max_32(int category, const char *locale);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_warnings.py73 self.module.filterwarnings("error", category=UserWarning)
81 self.module.filterwarnings("ignore", category=UserWarning)
89 self.module.filterwarnings("always", category=UserWarning)
100 self.module.filterwarnings("default", category=UserWarning)
116 self.module.filterwarnings("module", category=UserWarning)
128 self.module.filterwarnings("once", category=UserWarning)
144 self.module.filterwarnings("error", category=Warning)
152 self.module.filterwarnings("ignore", category=UserWarning)
153 self.module.filterwarnings("error", category=UserWarning,
174 self.assertTrue(w[-1].category is UserWarning)
[all …]
Dtest_unicodedata.py95 self.db.category(char),
140 self.assertEqual(self.db.category(u'\uFFFE'), 'Cn')
141 self.assertEqual(self.db.category(u'a'), 'Ll')
142 self.assertEqual(self.db.category(u'A'), 'Lu')
143 self.assertEqual(self.db.category(u'\U00020000'), 'Lo')
145 self.assertRaises(TypeError, self.db.category)
146 self.assertRaises(TypeError, self.db.category, u'xx')
Dtest_syntax.py532 warnings.filterwarnings(action='ignore', category=SyntaxWarning)
Dtest_support.py865 category = getattr(locale, catstr)
866 orig_locale = locale.setlocale(category)
876 locale.setlocale(category, loc)
886 locale.setlocale(category, orig_locale)
Dtest_getargs2.py219 category=DeprecationWarning,
226 category=DeprecationWarning,
Dpickletester.py26 category = getattr(locale, catstr)
27 orig_locale = locale.setlocale(category)
37 locale.setlocale(category, loc)
47 locale.setlocale(category, orig_locale)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dwarnings.h17 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dwarnings.h17 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_localemodule.c159 int category; in PyLocale_setlocale() local
163 if (!PyArg_ParseTuple(args, "i|z:setlocale", &category, &locale)) in PyLocale_setlocale()
167 if (category < LC_MIN || category > LC_MAX) in PyLocale_setlocale()
176 result = setlocale(category, locale); in PyLocale_setlocale()
186 if (category == LC_CTYPE || category == LC_ALL) in PyLocale_setlocale()
192 result = setlocale(category, NULL); in PyLocale_setlocale()
589 int category; in PyIntl_dcgettext() local
590 if (!PyArg_ParseTuple(args, "zsi", &domain, &msgid, &category)) in PyIntl_dcgettext()
592 return PyString_FromString(dcgettext(domain,msgid,category)); in PyIntl_dcgettext()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_localemodule.c159 int category; in PyLocale_setlocale() local
163 if (!PyArg_ParseTuple(args, "i|z:setlocale", &category, &locale)) in PyLocale_setlocale()
167 if (category < LC_MIN || category > LC_MAX) in PyLocale_setlocale()
176 result = setlocale(category, locale); in PyLocale_setlocale()
186 if (category == LC_CTYPE || category == LC_ALL) in PyLocale_setlocale()
192 result = setlocale(category, NULL); in PyLocale_setlocale()
589 int category; in PyIntl_dcgettext() local
590 if (!PyArg_ParseTuple(args, "zsi", &domain, &msgid, &category)) in PyIntl_dcgettext()
592 return PyString_FromString(dcgettext(domain,msgid,category)); in PyIntl_dcgettext()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DUnicode.py472 category = unicodedata.category
485 category(c)
494 category(c)
503 category(c)
512 category(c)
521 category(c)
534 category = unicodedata.category
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/
Dmakeunicodedata.py115 category = CATEGORY_NAMES.index(record[2])
122 category, combining, bidirectional, mirrored, eastasianwidth,
370 category = record[2]
375 if category in ["Lm", "Lt", "Lu", "Ll", "Lo"]:
377 if category == "Ll":
382 if category == "Zs" or bidirectional in ("WS", "B", "S"):
385 if category == "Lt":
387 if category == "Lu":
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/
DNOTES.msvc93 Memory Model category of the compiler options in the Project
148 can define __STDC__ in the Preprocessor category of the compiler

12