booster / com.didiglobal.booster.aapt2 / Resources / StyledString / SpanOrBuilder

SpanOrBuilder

interface SpanOrBuilder : MessageOrBuilder

Functions

getFirstChar


        The first character position this span applies to, in UTF-16 offset.
        
uint32 first_char = 2;

abstract fun getFirstChar(): Int

getLastChar


        The last character position this span applies to, in UTF-16 offset.
        
uint32 last_char = 3;

abstract fun getLastChar(): Int

getTag


        The name of the tag, and its attributes, encoded as follows:
        tag_name;attr1=value1;attr2=value2;[...]
        
string tag = 1;

abstract fun getTag(): String!

getTagBytes


        The name of the tag, and its attributes, encoded as follows:
        tag_name;attr1=value1;attr2=value2;[...]
        
string tag = 1;

abstract fun getTagBytes(): ByteString!