Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/compiler/php/
Dphp_generator.cc345 int lastindex = proto_file.find_last_of("."); in GeneratedMetadataFileName() local
349 file_no_suffix = proto_file.substr(0, lastindex); in GeneratedMetadataFileName()
1047 int lastindex = filename.find_last_of("."); in FilenameToClassname() local
1048 std::string result = filename.substr(0, lastindex); in FilenameToClassname()
1068 int lastindex = fullname.find_last_of("\\"); in GenerateMetadataFile() local
1070 if (lastindex != string::npos) { in GenerateMetadataFile()
1073 "name", fullname.substr(0, lastindex)); in GenerateMetadataFile()
1078 "name", fullname.substr(lastindex + 1)); in GenerateMetadataFile()
1141 int lastindex = fullname.find_last_of("\\"); in GenerateEnumFile() local
1143 if (lastindex != string::npos) { in GenerateEnumFile()
[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.c347 state->lastindex = -1; in state_reset()
411 state->lastindex = -1; in state_init()
2270 if (self->lastindex >= 0) in match_lastindex_get()
2271 return PyLong_FromSsize_t(self->lastindex); in match_lastindex_get()
2279 self->lastindex >= 0 && in match_lastgroup_get()
2280 self->lastindex < PyTuple_GET_SIZE(self->pattern->indexgroup)) in match_lastgroup_get()
2283 self->lastindex); in match_lastgroup_get()
2362 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/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/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/rust/crates/grpcio-sys/grpc/tools/distrib/
Dcheck_include_guards.py94 if match.lastindex is None:
114 if match.lastindex is None:
/external/llvm-project/llvm/utils/UpdateTestChecks/
Dcommon.py241 return match.group(1) + match.group(match.lastindex)
244 return match.group(1) + match.group(match.lastindex)
245 return match.group(1) + match.group(2) + match.group(match.lastindex)
350 for i in range(first_nameless_group_in_ir_value_match, match.lastindex):
413 return match.group(1) + rv + match.group(match.lastindex)
/external/clang/tools/scan-build-py/tests/functional/cases/
D__init__.py51 if match and match.lastindex == 1:
/external/llvm-project/clang/tools/scan-build-py/tests/functional/cases/
D__init__.py50 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.cc71 int lastindex = proto_file.find_last_of("."); in GetRequireName() local
72 return proto_file.substr(0, lastindex) + "_pb"; in GetRequireName()
/external/python/cpython2/Lib/
Dre.py333 action = self.lexicon[m.lastindex-1][1]
/external/python/cpython3/Lib/
Dre.py377 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/pycparser/pycparser/ply/
Dlex.py330 i = m.lastindex
/external/python/cpython3/Lib/test/
Dtest_re.py1203 self.assertIsNone(re.match(r'(a)?a','a').lastindex)
1204 self.assertEqual(re.match(r'(a)(b)?b','ab').lastindex, 1)
1207 self.assertEqual(re.match(r"((a))", "a").lastindex, 1)
/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/Doc/library/
Dre.rst1304 .. attribute:: Match.lastindex
1308 ``((ab))`` will have ``lastindex == 1`` if applied to the string ``'ab'``, while
1309 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

12