Searched refs:token_index (Results 1 – 10 of 10) sorted by relevance
/external/libtextclassifier/annotator/ |
D | feature-processor_test.cc | 443 int token_index; in TEST_F() local 446 token_index = internal::CenterTokenFromClick( in TEST_F() 449 EXPECT_EQ(token_index, 1); in TEST_F() 452 token_index = internal::CenterTokenFromClick( in TEST_F() 455 EXPECT_EQ(token_index, 2); in TEST_F() 458 token_index = internal::CenterTokenFromClick( in TEST_F() 461 EXPECT_EQ(token_index, kInvalidIndex); in TEST_F() 465 int token_index; in TEST_F() local 468 token_index = internal::CenterTokenFromMiddleOfSelection( in TEST_F() 472 EXPECT_EQ(token_index, 2); in TEST_F() [all …]
|
D | types.h | 104 inline TokenSpan SingleTokenSpan(int token_index) { in SingleTokenSpan() argument 105 return {token_index, token_index + 1}; in SingleTokenSpan()
|
D | feature-processor.cc | 400 int token_index = FindTokenThatContainsSpan(selectable_tokens, span); in CenterTokenFromClick() local 401 if (token_index != kInvalidIndex) { in CenterTokenFromClick() 402 range_begin = token_index; in CenterTokenFromClick() 403 range_end = token_index + 1; in CenterTokenFromClick()
|
/external/libtextclassifier/annotator/duration/ |
D | duration.cc | 144 int token_index; in FindDurationStartingAt() local 145 for (token_index = start_token_index; token_index < tokens.size(); in FindDurationStartingAt() 146 token_index++) { in FindDurationStartingAt() 147 const Token& token = tokens[token_index]; in FindDurationStartingAt() 196 return token_index; in FindDurationStartingAt()
|
/external/antlr/runtime/Ruby/lib/antlr3/tree/ |
D | debug.rb | 100 start_token.token_index, stop_token.token_index )
|
/external/antlr/runtime/Ruby/lib/antlr3/debug/ |
D | socket.rb | 208 token.token_index 233 [ token.token_index, token.type, token.channel,
|
/external/antlr/runtime/Ruby/lib/antlr3/ |
D | tree.rb | 615 ( stop.token_index < start.token_index and stop.type != EOF ) 633 i = @start.token_index 634 j = ( @stop.type == EOF ) ? @input.size : @stop.token_index
|
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/ |
D | esextcTessellationShaderTessellation.cpp | 928 std::size_t token_index = std::string::npos; in getTCCode() local 930 while ((token_index = result.find(token)) != std::string::npos) in getTCCode() 932 result = result.replace(token_index, token.length(), n_patch_vertices_string.c_str()); in getTCCode() 934 token_index = result.find(token); in getTCCode() 984 std::size_t token_index = std::string::npos; in getTECode() local 986 while ((token_index = result.find(token)) != std::string::npos) in getTECode() 988 result = result.replace(token_index, token.length(), primitive_mode_string.c_str()); in getTECode() 990 token_index = result.find(token); in getTECode()
|
D | esextcTessellationShaderUtils.cpp | 408 std::size_t token_index = std::string::npos; in getGenericTCCode() local 416 while ((token_index = result.find(token)) != std::string::npos) in getGenericTCCode() 418 result = result.replace(token_index, token.length(), n_patch_vertices_raw_ptr); in getGenericTCCode() 420 token_index = result.find(token); in getGenericTCCode()
|
D | esextcTessellationShaderTCTE.cpp | 3418 std::size_t token_index; in initTestDescriptor() local 3425 token_index = te_body_string.find(token); in initTestDescriptor() 3427 while (token_index != std::string::npos) in initTestDescriptor() 3429 …te_body_string = te_body_string.replace(token_index, token.length(), vertex_spacing_string.c_str()… in initTestDescriptor() 3431 token_index = te_body_string.find(token); in initTestDescriptor() 3958 std::size_t token_index = -1; in initTestDescriptor() local 3966 while ((token_index = tc_body_string.find(token_string)) != std::string::npos) in initTestDescriptor() 3968 tc_body_string = tc_body_string.replace(token_index, strlen(token_string), vertices_string); in initTestDescriptor()
|