/external/libtextclassifier/ |
strip-unpaired-brackets.cc | 27 // Returns true if given codepoint is contained in the given span in context. 30 const CodepointSpan span) { 32 std::advance(begin_it, span.first); 34 std::advance(end_it, span.second); 39 // Returns the first codepoint of the span. 41 const CodepointSpan span) { 43 std::advance(it, span.first); 47 // Returns the last codepoint of the span. 49 const CodepointSpan span) { 51 std::advance(it, span.second - 1) [all...] |
strip-unpaired-brackets.h | 26 // If the first or the last codepoint of the given span is a bracket, the 27 // bracket is stripped if the span does not contain its corresponding paired 30 CodepointSpan span, const UniLib& unilib); 34 CodepointSpan span, const UniLib& unilib);
|
/external/Microsoft-GSL/tests/ |
string_span_tests.cpp | 132 cstring_span<> span = "Hello"; variable 135 // comparison to empty span 136 CHECK(span1 != span); 137 CHECK(span != span1); 141 cstring_span<> span = "Hello"; variable 144 // comparison to different span 145 CHECK(span1 != span); 146 CHECK(span != span1); 150 cstring_span<> span = "Hello"; variable 158 gsl::span<const char> sp = ensure_z("Hello") 191 string_span<> span = ar; variable 233 cstring_span<> span = "Hello"; variable 358 cstring_span<> span = "Hello"; variable 393 string_span<> span = ar; variable 448 string_span<> span = ensure_z(ptr); variable 462 cstring_span<> span = sp; variable 470 string_span<> span = sp; variable 478 cstring_span<> span = std::string("Hello"); variable 484 cstring_span<> span; variable 496 cstring_span<> span = "Hello"; variable 503 cstring_span<> span = ar; variable 510 cstring_span<> span = ar; variable 554 const cstring_span<> span = str; variable 561 const cstring_span<> span = str; variable 568 const cstring_span<> span = vec; variable 575 const cstring_span<> span = vec; variable 583 const cstring_span<> span = inner; variable 591 const cstring_span<> span = inner; variable 599 const cstring_span<> span = tmp; variable 607 cstring_span<> span = tmp; variable 616 string_span<> span = "Hello"; variable 624 string_span<> span = ar; variable 632 string_span<> span = ar; variable 657 string_span<> span = str; variable 665 string_span<> span = str; variable 673 string_span<> span = vec; variable 681 string_span<> span = vec; variable 690 string_span<> span = inner; variable 699 string_span<> span = inner; variable 708 string_span<> span = inner; variable 718 string_span<> span = tmp; variable 727 const string_span<> span = tmp; variable 736 string_span<> span = tmp; variable 745 const string_span<> span = tmp; variable 771 cstring_span<> span = "Hello"; variable 776 cstring_span<> span = "Hello"; variable 781 cstring_span<> span = "Hello"; variable 788 span<const char> span = ensure_z("Hello"); variable 793 span<const char> span = ensure_z("Hello"); variable 802 string_span<> span = std::move(str); variable 809 string_span<> span = move_wrapper<std::string>(std::move(str)); variable 823 string_span<> span = std::move(vec); variable 830 string_span<> span = move_wrapper<std::vector<char>>(std::move(vec)); variable 844 cstring_span<> span = "Hello"; variable [all...] |
span_tests.cpp | 19 #include <gsl/span> 45 span<int> s; 48 span<const int> cs; 53 span<int, 0> s; 56 span<const int, 0> cs; 62 span<int, 1> s; 68 span<int> s{}; 71 span<const int> cs{}; 79 span<int> s; 84 span<int, 0> s [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_atifragshader.h | 34 _swrast_exec_fragment_shader( struct gl_context *ctx, SWspan *span );
|
s_texcombine.h | 35 _swrast_texture_span( struct gl_context *ctx, SWspan *span );
|
s_span.c | 29 * \brief Span processing functions used by all rasterization functions. 60 * Set default fragment attributes for the span using the 65 _swrast_span_default_attribs(struct gl_context *ctx, SWspan *span) 72 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); 76 span->z = (GLint)tmpf; 78 span->zStep = 0; 79 span->interpMask |= SPAN_Z; 83 span->attrStart[VARYING_SLOT_POS][3] = 1.0; 84 span->attrStepX[VARYING_SLOT_POS][3] = 0.0; 85 span->attrStepY[VARYING_SLOT_POS][3] = 0.0 [all...] |
s_points.c | 85 SWspan span; local 95 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); 97 span.z = (GLuint) (vert->attrib[VARYING_SLOT_POS][2] + 0.5F); 98 span.zStep = 0; 102 /* span init */ 103 INIT_SPAN(span, GL_POINT); 104 span.interpMask = SPAN_Z | SPAN_RGBA; 106 span.facing = swrast->PointLineFacing; 108 span.red = ChanToFixed(vert->color[0]); 109 span.green = ChanToFixed(vert->color[1]) 245 SWspan span; local 365 SWspan span; local 459 SWspan *span = &(swrast->PointSpan); local [all...] |
s_alpha.h | 36 _swrast_alpha_test( const struct gl_context *ctx, SWspan *span );
|
s_linetemp.h | 69 SWspan span; local 221 * Span setup: compute start and step values for all interpolated values. 225 span.red = ChanToFixed(vert0->color[0]); 226 span.green = ChanToFixed(vert0->color[1]); 227 span.blue = ChanToFixed(vert0->color[2]); 228 span.alpha = ChanToFixed(vert0->color[3]); 229 span.redStep = (ChanToFixed(vert1->color[0]) - span.red ) / numPixels; 230 span.greenStep = (ChanToFixed(vert1->color[1]) - span.green) / numPixels [all...] |
s_bitmap.c | 56 SWspan span; local 72 INIT_SPAN(span, GL_BITMAP); 73 span.end = width; 74 span.arrayMask = SPAN_XY; 75 _swrast_span_default_attribs(ctx, &span); 86 span.array->x[count] = px + col; 87 span.array->y[count] = py + row; 108 span.array->x[count] = px + col; 109 span.array->y[count] = py + row; 127 /* flush the span */ [all...] |
s_depth.h | 38 _swrast_depth_test_span( struct gl_context *ctx, SWspan *span); 41 _swrast_depth_clamp_span( struct gl_context *ctx, SWspan *span ); 44 _swrast_depth_bounds_test( struct gl_context *ctx, SWspan *span );
|
s_fog.h | 40 _swrast_fog_rgba_span( const struct gl_context *ctx, SWspan *span );
|
s_fragprog.h | 38 _swrast_exec_fragment_program(struct gl_context *ctx, SWspan *span);
|
s_logic.h | 37 SWspan *span);
|
s_masking.h | 39 SWspan *span, GLuint buf);
|
s_tritemp.h | 58 * RENDER_SPAN(span) - code to write a span of pixels. 105 GLfixed endVal = span.CHANNEL + (LEN) * span.CHANNELSTEP; \ 107 span.CHANNEL -= endVal; \ 109 if (span.CHANNEL < 0) { \ 110 span.CHANNEL = 0; \ 147 SWspan span; local 151 INIT_SPAN(span, GL_POLYGON); 152 span.y = 0; /* silence warnings * [all...] |
s_alpha.c | 88 * \return 0 if all pixels in the span failed the alpha test, 92 _swrast_alpha_test(const struct gl_context *ctx, SWspan *span) 94 const GLuint n = span->end; 95 GLubyte *mask = span->array->mask; 106 span->writeAll = GL_FALSE; 110 if (span->arrayMask & SPAN_RGBA) { 112 if (span->array->ChanType == GL_UNSIGNED_BYTE) { 113 GLubyte (*rgba)[4] = span->array->rgba8; 118 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { 119 GLushort (*rgba)[4] = span->array->rgba16 [all...] |
s_fog.c | 90 if (span->arrayAttribs & VARYING_BIT_FOGC) { \ 92 for (i = 0; i < span->end; i++) { \ 93 const GLfloat fogCoord = span->array->attribs[VARYING_SLOT_FOGC][i][0]; \ 105 const GLfloat fogStep = span->attrStepX[VARYING_SLOT_FOGC][0]; \ 106 GLfloat fogCoord = span->attrStart[VARYING_SLOT_FOGC][0]; \ 107 const GLfloat wStep = span->attrStepX[VARYING_SLOT_POS][3]; \ 108 GLfloat w = span->attrStart[VARYING_SLOT_POS][3]; \ 110 for (i = 0; i < span->end; i++) { \ 125 * Apply fog to a span of RGBA pixels. 126 * The fog value are either in the span->array->fog array or interpolated fro [all...] |
/external/mesa3d/src/mesa/drivers/x11/ |
xm_tri.c | 69 #define RENDER_SPAN( span ) { \ 70 GLint x = span.x, y = YFLIP(xrb, span.y); \ 72 for (i = 0; i < span.end; i++, x++) { \ 73 const DEPTH_TYPE z = FixedToDepth(span.z); \ 76 PACK_TRUECOLOR(p, FixedToInt(span.red), \ 77 FixedToInt(span.green), FixedToInt(span.blue)); \ 81 span.red += span.redStep; [all...] |
/external/ImageMagick/MagickCore/ |
monitor.h | 34 const MagickSizeType span) 36 if (span <= 100) 38 if (offset == (MagickOffsetType) (span-1)) 40 if ((offset % (span/100)) == 0)
|
/frameworks/support/core/ktx/src/main/java/androidx/core/text/ |
SpannableString.kt | 31 /** Adds [span] to the entire text. */ 32 inline operator fun Spannable.plusAssign(span: Any) = 33 setSpan(span, 0, length, SPAN_INCLUSIVE_EXCLUSIVE) 35 /** Removes [span] from this text. */ 36 inline operator fun Spannable.minusAssign(span: Any) = removeSpan(span) 42 * Add [span] to the range [start]…[end] of the text. 53 inline operator fun Spannable.set(start: Int, end: Int, span: Any) { 54 setSpan(span, start, end, SPAN_INCLUSIVE_EXCLUSIVE) 58 * Add [span] to the [range] of the text [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
QuoteSpanTest.java | 38 QuoteSpan span = new QuoteSpan(); local 39 assertEquals(calculateLeadingMargin(span.getStripeWidth(), span.getGapWidth()), 40 span.getLeadingMargin(true)); 41 assertTrue(span.getColor() != 0); 42 assertTrue(span.getGapWidth() > 0); 43 assertTrue(span.getStripeWidth() > 0); 48 QuoteSpan span = new QuoteSpan(Color.RED); local 49 assertEquals(calculateLeadingMargin(span.getStripeWidth(), span.getGapWidth()) 58 QuoteSpan span = new QuoteSpan(Color.RED, 10, 5); local 73 QuoteSpan span = new QuoteSpan(p); local [all...] |
/test/vti/dashboard/src/main/webapp/js/ |
plan_runs.js | 35 var span = $('<span></span>'); variable 36 span.addClass('plan-run-metadata'); 37 span.appendTo(div); 38 $('<b></b>').text(entry.deviceInfo).appendTo(span); 39 span.append('<br>'); 40 $('<b></b>').text('VTS Build: ').appendTo(span); 41 span.append(entry.testPlanRun.testBuildId).append('<br>'); 46 span.append(timeString) [all...] |
/external/icu/icu4j/ |
stylesheet6.css | 60 span.j-blk /* block comment */ 65 span.j-cmt /* line comment */ 70 span.j-key /* keyword */ 77 span.j-str /* string constants */ 82 span.j-chr /* char constants */ 87 span.j-num /* number constants */ 91 span.j-sym /* symbols, punctuation */ 95 span.j-typ /* primitive types */ 101 span.j-jdoc /* javadoc */ 106 span.j-jdoc-key /* javadoc keyword * [all...] |