From 97b15f1b0853496fb49ea335cc304aa48c75f1f7 Mon Sep 17 00:00:00 2001 From: dsiders Date: Sat, 18 Nov 2023 23:11:26 +0000 Subject: [PATCH] Docs: LCL/lresources. Adds deprecation notices in TUTF8Parser topics for changes in 5b65498e. --- docs/xml/lcl/lresources.xml | 450 +++++++++++++++++++++++------------- 1 file changed, 285 insertions(+), 165 deletions(-) diff --git a/docs/xml/lcl/lresources.xml b/docs/xml/lcl/lresources.xml index 34581405f0..564a025016 100644 --- a/docs/xml/lcl/lresources.xml +++ b/docs/xml/lcl/lresources.xml @@ -53,7 +53,7 @@ Author: Mattias Gaertner

- ++ @@ -1751,7 +1751,9 @@ pointer to the item data. -Parser for identifiers, and string and number literals. + ++Deprecated. Parser for UTF-8-encoded identifiers, string, and number literals. +

Use to get the next token. @@ -1775,227 +1777,267 @@ according to FloatType. All other characters are returned literally.

- + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + + +RTL.Classes.TParser +
- -The input stream. - - - - - -The allocated buffer. - - - - - -Number of valid chars (bytes) in the buffer. - - - - - -Current position (index) in the buffer. - - - - - -Buffer-relative begin of the current line. - -column = fPos - fLineStart + 1 - - - - - - - - - -True when reached the end of the input stream. - - - - - -Holds the last parsed token text. - - - + + + + + + + + + + -The name of a token, maybe the Token character itself. + +Deprecated. The name of a token, maybe the Token character itself. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - - - - + + -Fills the buffer from the input stream. + +Deprecated. Fills the buffer from the input stream. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Skips to the next non-null character. + +Deprecated. Skips to the next non-null character. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Add the current character to the token string. + +Deprecated. Add the current character to the token string. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -True when the current character is a digit. + +Deprecated. True when the current character is a digit. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -True when the current character is a hex digit. + +Deprecated. True when the current character is a hex digit. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -True when the current character is an ASCII character (or underscore). +Deprecated. True when the current character is an ASCII character (or +underscore). -Should mean: all allowed characters in an identifier. -[To be updated for Unicode identifiers] + +Should mean: all allowed characters in an identifier. +[To be updated for Unicode identifiers]. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -True when the current character is a digit or IsAlpha. + +Deprecated. True when the current character is a digit or IsAlpha. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -Returns the value of a hex digit. + +Deprecated. Returns the value of a hex digit. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - - - - + + -Parses and returns an identifier. + +Deprecated. Parses and returns an identifier. + - -EParserError when the current character is not valid for an -identifier. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + + +EParserError when the current character is not valid for an identifier. + - - - + -Skip CR/LF, adjust SourceLine. + +Deprecated. Skip CR/LF, adjust SourceLine. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Skip space and tab chars. + +Deprecated. Skip space and tab chars. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Skip all whitespace characters. + +Deprecated. Skip all whitespace characters. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Marks end of input reached (fEofReached). + +Deprecated. Marks end of input reached (fEofReached). + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Parse an identifier. + +Deprecated. Parse an identifier. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Parse a number, -recognizing trailing floating point format specifiers. + +Deprecated. Parse a number, recognizing trailing floating point format +specifiers. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Parse a hex number, prefix the token string with '$'. + +Deprecated. Parse a hex number, prefix the token string with '$'. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -EParserError when no valid hex digit was found. + +EParserError when no valid hex digit was found. -Parse an quoted string, excluding the leading and trailing quotes. +Deprecated. Parse an quoted string, excluding the leading and trailing quotes. - -EParserError on an unterminated string literal. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + + +EParserError on an unterminated string literal. + - - - + -Parse an decimal Unicode codepoint, return it as an UTF-8 string. +Deprecated. Parse an decimal Unicode codepoint, return it as an UTF-8 string. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + Is set to False on a non-ASCII character. -Parses a string literal. + +Deprecated. Parses a string literal. +

The string can consist of quoted strings and Unicode codepoints. @@ -2008,26 +2050,39 @@ The result is stored in fLastTokenStr, in UTF-8 encoding. The resulting token is toString for all-ASCII strings, else toWString.

+ +Deprecated in LCL version 3.0. Use Classes.TParser instead. +
-Tries to parse a negative number, or a single '-' character. + +Deprecated. Tries to parse a negative number, or a single '-' character. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Sets Token to the unrecognized character (no error). + +Deprtecated. Sets Token to the unrecognized character (no error). + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -Constructor for the class instance. + +Deprecated. Constructor for the class instance. +

Create is the constructor for the class instance. @@ -2041,6 +2096,9 @@ the NextToken method is called to position the parser on the first token in the buffered values.

+ +Deprecated in LCL version 3.0. Use Classes.TParser instead. +
@@ -2048,7 +2106,9 @@ the buffered values. -Destructor for the class instance. + +Deprecated. Destructor for the class instance. +

Destroy is the overridden destructor for the class instance. It @@ -2057,36 +2117,54 @@ position for the last processed value in the internal buffer). Destroy free the memory allocated for the internal buffer in the class instance.

+ +Deprecated in LCL version 3.0. Use Classes.TParser instead. +
-Asserts that Token is of the expected type. + +Deprecated. Asserts that Token is of the expected type. + -EParserError when Token doesn't match the expected type. + +EParserError when Token doesn't match the expected type. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + The expected token type. -Asserts that the given name was parsed (case insensitive). + +Deprecated. Asserts that the given name was parsed (case insensitive). -EParserError when Token doesn't match the expected type or name. + +EParserError when Token doesn't match the expected type or name. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + The expected identifier. -Raises an EParserError with the given message. + +Deprecated. Raises an EParserError with the given message. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + @@ -2094,9 +2172,13 @@ the memory allocated for the internal buffer in the class instance. -Raises an EParserError with the formatted message. + +Deprecated. Raises an EParserError with the formatted message. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + @@ -2107,18 +2189,21 @@ the memory allocated for the internal buffer in the class instance. -Raises an EParserError with the given message, adding source position -information. + +Deprecated. Raises an EParserError with the given message, adding source +position information. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -Writes an hex value into the output stream. + +Deprecated. Writes an hex value into the output stream.

@@ -2128,18 +2213,26 @@ The hex digits must occur in pairs, for every byte. The binary bytes are written in input order (highest first).

- EParserError on unpaired hex digits. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + +
The output stream. -Parses the next token. + +Deprecated. Parses the next token. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + @@ -2147,98 +2240,125 @@ EParserError on unpaired hex digits. -Returns the current position in the input stream. + +Deprecated. Returns the current position in the input stream. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -Parses an (possibly) qualified identifier, after a symbol has been parsed. +Deprecated. Parses an (possibly) qualified identifier, after a symbol has been +parsed. - -EParserError when Token is not toSymbol. + +EParserError when Token is not toSymbol. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + + - - - + -Returns the binary value of a floating point number. + +Deprecated. Returns the binary value of a floating point number. + - -EParserError on an invalid number. + +EParserError on an invalid number. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + + - - - + -Returns the binary value of an integral number. +Deprecated. Returns the binary value of an integral number. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -Returns the last parsed token as an string. + +Deprecated. Returns the last parsed token as an string. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + - - - + -Compares the parsed symbol with the given string (case-insensitive). + +Deprecated. Compares the parsed symbol with the given string (case-insensitive). + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + True when a matching symbol has been parsed. - - - + -The type of the parsed floating point number. (number, date...). +Deprecated. The type of the parsed floating point number. (number, date...). + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -The current line number in the input stream. + +Deprecated. The current line number in the input stream. + +Deprecated in LCL version 3.0. Use Classes.TParser instead. + -The current column number in the source line. + +Deprecated. The current column number in the source line. - - - + -The last parsed token type. + +Deprecated. The last parsed token type. + + +Deprecated in LCL version 3.0. Use Classes.TParser instead. +