Plasma Engine  2.0
Loading...
Searching...
No Matches
plToken Struct Reference

Represents one piece of tokenized text in a document. More...

#include <Tokenizer.h>

Public Attributes

plInt32 m_iType
 Typically of type plTokenType, but users can put anything in there, that they like.
 
plUInt32 m_uiLine
 The line in which the token appeared.
 
plUInt32 m_uiColumn
 The column in the line, at which the token string started.
 
plStringView m_DataView
 
plUInt32 m_uiCustomFlags
 For users to be able to store additional info for a token.
 
plHashedString m_File
 The file in which the token appeared.
 

Detailed Description

Represents one piece of tokenized text in a document.

Member Data Documentation

◆ m_DataView

plStringView plToken::m_DataView

The actual string data that represents the token. Note that this is a view to a substring of some larger text data. To get only the relevant piece as one zero-terminated string, assign m_DataView to an plStringBuilder and read that instead.


The documentation for this struct was generated from the following file: