Home
last modified time | relevance | path

Searched refs:lastindex (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython2/Modules/
Dsre.h56 Py_ssize_t lastindex; /* last index marker seen by the engine (-1 if none) */ member
85 Py_ssize_t lastindex; member
D_sre.c664 ctx->lastindex = state->lastindex; \
669 state->lastindex = ctx->lastindex; \
802 Py_ssize_t lastindex; member
861 state->lastindex = i/2 + 1; in SRE_MATCH()
1690 state->lastindex = -1; in state_reset()
1776 state->lastindex = -1; in state_init()
3705 if (self->lastindex >= 0) in match_lastindex_get()
3706 return PyInt_FromSsize_t(self->lastindex); in match_lastindex_get()
3714 if (self->pattern->indexgroup && self->lastindex >= 0) { in match_lastgroup_get()
3716 self->pattern->indexgroup, self->lastindex in match_lastgroup_get()
[all …]
/external/python/cpython3/Modules/
Dsre.h50 Py_ssize_t lastindex; /* last index marker seen by the engine (-1 if none) */ member
75 Py_ssize_t lastindex; member
D_sre.c354 state->lastindex = -1; in state_reset()
418 state->lastindex = -1; in state_init()
2284 if (self->lastindex >= 0) in match_lastindex_get()
2285 return PyLong_FromSsize_t(self->lastindex); in match_lastindex_get()
2293 self->lastindex >= 0 && in match_lastgroup_get()
2294 self->lastindex < PyTuple_GET_SIZE(self->pattern->indexgroup)) in match_lastgroup_get()
2297 self->lastindex); in match_lastgroup_get()
2376 match->lastindex = state->lastindex; in pattern_new_match()
Dsre_lib.h395 ctx->lastindex = state->lastindex; \
400 state->lastindex = ctx->lastindex; \
538 Py_ssize_t lastindex; member
599 state->lastindex = i/2 + 1; in SRE()
1368 do { state->lastmark = state->lastindex = -1; } while (0)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.py219 if match.lastindex:
242 if match.lastindex:
325 idx, group = match.lastindex, match.group
/external/grpc-grpc/tools/distrib/
Dcheck_include_guards.py90 if match.lastindex is None:
110 if match.lastindex is None:
/external/clang/tools/scan-build-py/tests/functional/cases/
D__init__.py51 if match and match.lastindex == 1:
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.cc110 int lastindex = proto_file.find_last_of("."); in StripDotProto() local
111 return proto_file.substr(0, lastindex); in StripDotProto()
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc74 int lastindex = proto_file.find_last_of("."); in StripDotProto() local
75 return proto_file.substr(0, lastindex); in StripDotProto()
/external/python/cpython2/Lib/
Dre.py333 action = self.lexicon[m.lastindex-1][1]
/external/python/cpython3/Lib/
Dre.py359 action = self.lexicon[m.lastindex-1][1]
/external/python/cpython2/Lib/test/
Dtest_re.py777 self.assertIsNone(re.match(r'(a)?a','a').lastindex)
778 self.assertEqual(re.match(r'(a)(b)?b','ab').lastindex, 1)
781 self.assertEqual(re.match("((a))", "a").lastindex, 1)
/external/libchrome/third_party/ply/
Dlex.py328 i = m.lastindex
/external/ply/ply/ply/
Dlex.py330 i = m.lastindex
/external/selinux/python/sepolgen/src/sepolgen/
Dlex.py330 i = m.lastindex
/external/python/cpython2/Doc/library/
Dre.rst1006 .. attribute:: MatchObject.lastindex
1010 ``((ab))`` will have ``lastindex == 1`` if applied to the string ``'ab'``, while
1011 the expression ``(a)(b)`` will have ``lastindex == 2``, if applied to the same
/external/python/cpython3/Lib/test/
Dtest_re.py1167 self.assertIsNone(re.match(r'(a)?a','a').lastindex)
1168 self.assertEqual(re.match(r'(a)(b)?b','ab').lastindex, 1)
1171 self.assertEqual(re.match(r"((a))", "a").lastindex, 1)
/external/python/cpython3/Doc/library/
Dre.rst1295 .. attribute:: Match.lastindex
1299 ``((ab))`` will have ``lastindex == 1`` if applied to the string ``'ab'``, while
1300 the expression ``(a)(b)`` will have ``lastindex == 2``, if applied to the same
/external/python/cpython2/Misc/
DHISTORY5374 lastindex/lastgroup match attributes in similar cases. For example,
5375 when running the expression r'(a)(b)?b' over 'ab', lastindex must be
/external/python/cpython3/Misc/
DHISTORY22758 lastindex/lastgroup match attributes in similar cases. For example,
22759 when running the expression r'(a)(b)?b' over 'ab', lastindex must be