Home
last modified time | relevance | path

Searched refs:exc (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/external/freetype/src/truetype/
Dttinterp.c53 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
58 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
64 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
69 exc->func_project( exc, (v1)->x - (v2)->x, (v1)->y - (v2)->y )
72 exc->func_dualproj( exc, (v1)->x - (v2)->x, (v1)->y - (v2)->y )
75 exc->func_project( exc, (v)->x, (v)->y )
78 exc->func_dualproj( exc, (v)->x, (v)->y )
1460 Current_Ratio( TT_ExecContext exc ) in Current_Ratio() argument
1462 if ( !exc->tt_metrics.ratio ) in Current_Ratio()
1464 if ( exc->GS.projVector.y == 0 ) in Current_Ratio()
[all …]
/external/pdfium/third_party/freetype/src/truetype/
Dttinterp.c58 ( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == \
63 exc->func_project( exc, (v1)->x - (v2)->x, (v1)->y - (v2)->y )
66 exc->func_dualproj( exc, (v1)->x - (v2)->x, (v1)->y - (v2)->y )
69 exc->func_project( exc, (v)->x, (v)->y )
72 exc->func_dualproj( exc, (v)->x, (v)->y )
79 typedef void (*TInstruction_Function)( TT_ExecContext exc,
101 if ( exc->face->unpatented_hinting ) \
103 exc->GS.V.x = (FT_F2Dot14)( exc->GS.both_x_axis ? 0x4000 : 0 ); \
104 exc->GS.V.y = (FT_F2Dot14)( exc->GS.both_x_axis ? 0 : 0x4000 ); \
1478 Current_Ratio( TT_ExecContext exc ) in Current_Ratio() argument
[all …]
/external/fdlibm/
Dk_standard.c84 struct exception exc; local
95 exc.arg1 = x;
96 exc.arg2 = y;
100 exc.type = DOMAIN;
101 exc.name = "acos";
102 exc.retval = zero;
105 else if (!ieee_matherr(&exc)) {
114 exc.type = DOMAIN;
115 exc.name = "asin";
116 exc.retval = zero;
[all …]
/external/python/cpython2/Lib/test/
Dtest_pep352.py73 exc = getattr(__builtin__, exc_name)
81 self.assertTrue(issubclass(exc, superclasses[-1][1]),
82 "%s is not a subclass of %s" % (exc.__name__,
85 self.verify_instance_interface(exc())
90 last_exc = exc
108 exc = Exception(arg)
109 results = ([len(exc.args), 1], [exc.args[0], arg], [exc.message, arg],
110 [str(exc), str(arg)], [unicode(exc), unicode(arg)],
111 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
112 [exc[0], arg])
[all …]
Dtest_codeccallbacks.py10 def handle(self, exc): argument
14 realpos = len(exc.object) + realpos
17 if realpos <= exc.start:
18 self.pos = len(exc.object)
102 def xmlcharnamereplace(exc): argument
103 if not isinstance(exc, UnicodeEncodeError):
104 raise TypeError("don't know how to handle %r" % exc)
106 for c in exc.object[exc.start:exc.end]:
111 return (u"".join(l), exc.end)
133 def uninamereplace(exc): argument
[all …]
Dtest_exceptions.py31 def raise_catch(self, exc, excname): argument
33 raise exc, "spam"
34 except exc, err:
37 raise exc("spam")
38 except exc, err:
41 self.assertEqual(exc.__name__, excname)
169 exc, err, tb = sys.exc_info()
181 exc, err, tb = sys.exc_info()
285 for exc, args, expected in exceptionList:
287 raise exc(*args)
[all …]
Dtest_multibytecodec_support.py82 def xmlcharnamereplace(exc): argument
83 if not isinstance(exc, UnicodeEncodeError):
84 raise TypeError("don't know how to handle %r" % exc)
86 for c in exc.object[exc.start:exc.end]:
91 return (u"".join(l), exc.end)
104 def myreplace(exc): argument
105 return (ret, exc.end)
113 def myreplace(exc): argument
114 return (u'x', long(exc.end))
119 def myreplace(exc): argument
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt012lexerXML.py71 except antlr3.NoViableAltException, exc:
72 assert exc.unexpectedType == '>', repr(exc.unexpectedType)
73 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine)
74 assert exc.line == 2, repr(exc.line)
95 except antlr3.MismatchedSetException, exc:
96 assert exc.unexpectedType == 't', repr(exc.unexpectedType)
97 assert exc.charPositionInLine == 2, repr(exc.charPositionInLine)
98 assert exc.line == 1, repr(exc.line)
119 except antlr3.NoViableAltException, exc:
120 assert exc.unexpectedType == 'a', repr(exc.unexpectedType)
[all …]
Dt006lexer.py53 except antlr3.MismatchedTokenException, exc:
54 assert exc.expecting == 'f', repr(exc.expecting)
55 assert exc.unexpectedType == '2', repr(exc.unexpectedType)
56 assert exc.charPositionInLine == 10, repr(exc.charPositionInLine)
57 assert exc.line == 1, repr(exc.line)
Dt009lexer.py58 except antlr3.MismatchedSetException, exc:
60 assert exc.expecting is None
61 assert exc.unexpectedType == 'a', repr(exc.unexpectedType)
62 assert exc.charPositionInLine == 1, repr(exc.charPositionInLine)
63 assert exc.line == 1, repr(exc.line)
Dt005lexer.py57 except antlr3.MismatchedTokenException, exc:
58 assert exc.expecting == 'f', repr(exc.expecting)
59 assert exc.unexpectedType == '2', repr(exc.unexpectedType)
70 except antlr3.EarlyExitException, exc:
71 assert exc.unexpectedType == antlr3.EOF, repr(exc.unexpectedType)
Dt007lexer.py51 except antlr3.EarlyExitException, exc:
52 assert exc.unexpectedType == 'o', repr(exc.unexpectedType)
53 assert exc.charPositionInLine == 6, repr(exc.charPositionInLine)
54 assert exc.line == 1, repr(exc.line)
Dt008lexer.py59 except antlr3.MismatchedTokenException, exc:
60 assert exc.unexpectedType == 'b', repr(exc.unexpectedType)
61 assert exc.charPositionInLine == 3, repr(exc.charPositionInLine)
62 assert exc.line == 1, repr(exc.line)
Dt010lexer.py70 except antlr3.NoViableAltException, exc:
71 assert exc.unexpectedType == '-', repr(exc.unexpectedType)
72 assert exc.charPositionInLine == 1, repr(exc.charPositionInLine)
73 assert exc.line == 1, repr(exc.line)
Dt011lexer.py70 except antlr3.NoViableAltException, exc:
71 assert exc.unexpectedType == '-', repr(exc.unexpectedType)
72 assert exc.charPositionInLine == 1, repr(exc.charPositionInLine)
73 assert exc.line == 1, repr(exc.line)
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/
Dbasic.rb76 b.should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
77 exc.unexpected_type.should == '2'
117 should raise_error( ANTLR3::Error::NoViableAlternative ) do |exc|
118 exc.unexpected_type.should == '2'
171 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
172 exc.expecting.should == 'f'
173 exc.unexpected_type.should == '2'
219 should raise_error( ANTLR3::Error::MismatchedToken ) do |exc|
220 exc.expecting.should == 'f'
221 exc.unexpected_type.should == '2'
[all …]
/external/python/cpython2/Python/
Derrors.c85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
119 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches()
130 return err == exc; in PyErr_GivenExceptionMatches()
135 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
137 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
[all …]
Dcodecs.c597 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
599 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type()
616 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
618 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
619 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
627 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
631 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
632 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
635 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
636 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
/external/python/cpython2/Lib/
Dcontextlib.py37 except StopIteration, exc:
41 return exc is not value
107 exc = (None, None, None)
116 exc = sys.exc_info()
121 if exit(*exc):
122 exc = (None, None, None)
124 exc = sys.exc_info()
125 if exc != (None, None, None):
129 raise exc[0], exc[1], exc[2]
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_raise.py41 exc = results["exc"].clone()
42 if exc.type == token.STRING:
53 if is_tuple(exc):
54 while is_tuple(exc):
57 exc = exc.children[1].children[0].clone()
58 exc.prefix = u" "
62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc])
77 e = exc
82 e = Call(exc, args)
89 [Name(u"raise"), Call(exc, args)],
/external/antlr/antlr-3.4/runtime/Python/unittests/
Dtestexceptions.py12 exc = antlr3.RecognitionException()
22 exc = antlr3.EarlyExitException()
32 exc = antlr3.FailedPredicateException()
42 exc = antlr3.MismatchedNotSetException()
52 exc = antlr3.MismatchedRangeException()
62 exc = antlr3.MismatchedSetException()
72 exc = antlr3.MismatchedTokenException()
82 exc = antlr3.MismatchedTreeNodeException()
92 exc = antlr3.NoViableAltException()
/external/libvncserver/webclients/novnc/include/
Dwebsock.js231 } catch (exc) {
355 } catch (exc) {
357 if (exc.name) {
358 exception_str += "\n name: " + exc.name + "\n";
359 exception_str += " message: " + exc.message + "\n";
362 if (typeof exc.description !== 'undefined') {
363 exception_str += " description: " + exc.description + "\n";
366 if (typeof exc.stack !== 'undefined') {
367 exception_str += exc.stack;
373 Util.Error("recv_message, caught exception: " + exc);
[all …]
/external/python/cpython2/Doc/library/
Dexceptions.rst33 root class :exc:`BaseException`, the associated value is present as the
42 programmers are encouraged to derive new exceptions from the :exc:`Exception`
43 class or one of its subclasses, and not from :exc:`BaseException`. More
52 inherited by user-defined classes (for that, use :exc:`Exception`). If
62 exceptions (like :exc:`IOError`) expect a certain number of arguments and
73 Changed to inherit from :exc:`BaseException`.
78 The base class for all built-in exceptions except :exc:`StopIteration`,
79 :exc:`GeneratorExit`, :exc:`KeyboardInterrupt` and :exc:`SystemExit`.
80 :exc:`StandardError` itself is derived from :exc:`Exception`.
86 arithmetic errors: :exc:`OverflowError`, :exc:`ZeroDivisionError`,
[all …]
/external/python/cpython2/Doc/c-api/
Dexceptions.rst76 .. c:function:: int PyErr_ExceptionMatches(PyObject *exc)
78 Equivalent to ``PyErr_GivenExceptionMatches(PyErr_Occurred(), exc)``. This
83 .. c:function:: int PyErr_GivenExceptionMatches(PyObject *given, PyObject *exc)
85 Return true if the *given* exception matches the exception in *exc*. If
86 *exc* is a class object, this also returns true when *given* is an instance
87 of a subclass. If *exc* is a tuple, all exceptions in the tuple (and
91 .. c:function:: void PyErr_NormalizeException(PyObject**exc, PyObject**val, PyObject**tb)
94 can be "unnormalized", meaning that ``*exc`` is a class object but ``*val`` is
199 a third parameter. In the case of exceptions such as :exc:`IOError` and
200 :exc:`OSError`, this is used to define the :attr:`filename` attribute of the
[all …]
/external/javasqlite/src/main/native/
Dsqlite_jni.c357 jthrowable exc; in trans2iso() local
392 exc = (*env)->ExceptionOccurred(env); in trans2iso()
393 if (!exc) { in trans2iso()
404 (*env)->DeleteLocalRef(env, exc); in trans2iso()
528 jthrowable exc; in callback() local
546 exc = (*env)->ExceptionOccurred(env); in callback()
547 if (exc) { in callback()
548 (*env)->DeleteLocalRef(env, exc); in callback()
556 exc = (*env)->ExceptionOccurred(env); in callback()
557 if (exc) { in callback()
[all …]

12345678910>>...20