Interface StringLiteral


public interface StringLiteral
A string literal object results from processing a string literal in the source code. It consists of a sequence of execution characters. The execution charcters are obtained by interpreting the source characters in the source literal. Multiple source characters may encode a single execution character, using escape sequences and unicode encodings. The C11 Standard also specifies various kinds of strings, distinguished by the kind of chacters they contain.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The different kinds of strings, based on the kind of characters they contain.
  • Method Summary

    Modifier and Type
    Method
    Description
    getCharacter(int index)
    Returns the index-th execution character in the string.
    int
    Returns the number of execution characters in the string.
    Returns the kind of string this is.
  • Method Details

    • getNumCharacters

      int getNumCharacters()
      Returns the number of execution characters in the string.
      Returns:
      the number of execution characters
    • getCharacter

      ExecutionCharacter getCharacter(int index)
      Returns the index-th execution character in the string.
      Parameters:
      index - the character index, an integer in the range [0,n), where n is number of execution characters
      Returns:
      the index-th execution character
    • getStringKind

      StringLiteral.StringKind getStringKind()
      Returns the kind of string this is.
      Returns:
      the kind of this string