Home
last modified time | relevance | path

Searched refs:token_index (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/
Dfeature-processor_test.cc446 int token_index; in TEST() local
449 token_index = internal::CenterTokenFromClick( in TEST()
452 EXPECT_EQ(token_index, 1); in TEST()
455 token_index = internal::CenterTokenFromClick( in TEST()
458 EXPECT_EQ(token_index, 2); in TEST()
461 token_index = internal::CenterTokenFromClick( in TEST()
464 EXPECT_EQ(token_index, kInvalidIndex); in TEST()
468 int token_index; in TEST() local
471 token_index = internal::CenterTokenFromMiddleOfSelection( in TEST()
475 EXPECT_EQ(token_index, 2); in TEST()
[all …]
Dtypes.h99 inline TokenSpan SingleTokenSpan(int token_index) { in SingleTokenSpan() argument
100 return {token_index, token_index + 1}; in SingleTokenSpan()
Dfeature-processor.cc408 int token_index = FindTokenThatContainsSpan(selectable_tokens, span); in CenterTokenFromClick() local
409 if (token_index != kInvalidIndex) { in CenterTokenFromClick()
410 range_begin = token_index; in CenterTokenFromClick()
411 range_end = token_index + 1; in CenterTokenFromClick()
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/tree/
Ddebug.rb100 start_token.token_index, stop_token.token_index )
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
Dsocket.rb208 token.token_index
233 [ token.token_index, token.type, token.channel,
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dtree.rb615 ( 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/
DesextcTessellationShaderTessellation.cpp928 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()
DesextcTessellationShaderUtils.cpp408 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()
DesextcTessellationShaderTCTE.cpp3418 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()