XBinder  Version 2.7.x
rtxText.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2003-2020 Objective Systems, Inc.
3 *
4 * This software is furnished under a license and may be used and copied
5 * only in accordance with the terms of such license and with the
6 * inclusion of the above copyright notice. This software or any other
7 * copies thereof may not be provided or otherwise made available to any
8 * other person. No title to and ownership of the software is hereby
9 * transferred.
10 *
11 * The information in this software is subject to change without notice
12 * and should not be construed as a commitment by Objective Systems, Inc.
13 *
14 * PROPRIETARY NOTICE
15 *
16 * This software is an unpublished work subject to a confidentiality agreement
17 * and is protected by copyright and trade secret law. Unauthorized copying,
18 * redistribution or other use of this work is prohibited.
19 *
20 * The above notice of copyright on this source code product does not indicate
21 * any actual or intended publication of such source code.
22 *
23 *****************************************************************************/
28 #ifndef _RTXTEXT_H_
29 #define _RTXTEXT_H_
30 
31 #include "rtxContext.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /* Run-time functions for reading/writing values to/from the context buffer
38  in text form.
39 */
40 
63 EXTERNRT int rtxTxtMatchChar(OSCTXT* pctxt, OSUTF8CHAR ch, OSBOOL skipWs);
64 
65 
79 EXTERNRT int rtxTxtMatchChars(OSCTXT* pctxt, const OSUTF8CHAR* chars,
80  OSBOOL skipWs);
81 
96 EXTERNRT int rtxTxtPeekChar(OSCTXT* pctxt, OSUTF8CHAR* pch, OSBOOL skipWs);
97 
110 EXTERNRT char rtxTxtPeekChar2(OSCTXT* pctxt, OSBOOL skipWs);
111 
112 
121 EXTERNRT int rtxTxtSkipWhitespace(OSCTXT* pctxt);
122 
123 
138 EXTERNRT int rtxTxtReadBigInt(OSCTXT* pctxt, char** ppvalue);
139 
154 EXTERNRT int rtxTxtReadInt8(OSCTXT* pctxt, OSINT8* pvalue);
155 
170 EXTERNRT int rtxTxtReadInt16(OSCTXT* pctxt, OSINT16* pvalue);
171 
186 EXTERNRT int rtxTxtReadInt32(OSCTXT* pctxt, OSINT32* pvalue);
187 
202 EXTERNRT int rtxTxtReadInt64(OSCTXT* pctxt, OSINT64* pvalue);
203 
217 EXTERNRT int rtxTxtReadUInt8(OSCTXT* pctxt, OSUINT8* pvalue);
218 
232 EXTERNRT int rtxTxtReadUInt16(OSCTXT* pctxt, OSUINT16* pvalue);
233 
247 EXTERNRT int rtxTxtReadUInt32(OSCTXT* pctxt, OSUINT32* pvalue);
248 
262 EXTERNRT int rtxTxtReadUInt64(OSCTXT* pctxt, OSUINT64* pvalue);
263 
274 EXTERNRT int rtxTxtWriteInt(OSCTXT* pctxt, OSINT32 value);
275 
286 EXTERNRT int rtxTxtWriteInt64(OSCTXT* pctxt, OSINT64 value);
287 
288 
299 EXTERNRT int rtxTxtWriteUInt(OSCTXT* pctxt, OSUINT32 value);
300 
311 EXTERNRT int rtxTxtWriteUInt64(OSCTXT* pctxt, OSUINT64 value);
312 
317 #ifdef __cplusplus
318 }
319 #endif
320 
321 #endif
EXTERNRT int rtxTxtReadUInt16(OSCTXT *pctxt, OSUINT16 *pvalue)
This function reads an integer, using standard decimal notation, into an 16-bit unsigned integer...
EXTERNRT int rtxTxtReadInt32(OSCTXT *pctxt, OSINT32 *pvalue)
This function reads an integer, using standard decimal notation, into an 32-bit signed integer...
EXTERNRT int rtxTxtWriteInt(OSCTXT *pctxt, OSINT32 value)
This writes a 32-bit signed integer to the buffer using standard decimal (base 10) notation...
EXTERNRT char rtxTxtPeekChar2(OSCTXT *pctxt, OSBOOL skipWs)
This function determines the next character in the input.
EXTERNRT int rtxTxtReadUInt32(OSCTXT *pctxt, OSUINT32 *pvalue)
This function reads an integer, using standard decimal notation, into an 32-bit unsigned integer...
EXTERNRT int rtxTxtMatchChar(OSCTXT *pctxt, OSUTF8CHAR ch, OSBOOL skipWs)
This function matches the given character or logs and returns an error.
EXTERNRT int rtxTxtReadBigInt(OSCTXT *pctxt, char **ppvalue)
This function reads an integer, using standard decimal notation, into a character string...
Common run-time context definitions.
EXTERNRT int rtxTxtSkipWhitespace(OSCTXT *pctxt)
This function skips any whitespace in the input.
EXTERNRT int rtxTxtMatchChars(OSCTXT *pctxt, const OSUTF8CHAR *chars, OSBOOL skipWs)
This function matches the given characters or logs and returns an error.
EXTERNRT int rtxTxtReadInt8(OSCTXT *pctxt, OSINT8 *pvalue)
This function reads an integer, using standard decimal notation, into an 8-bit signed integer...
EXTERNRT int rtxTxtReadUInt64(OSCTXT *pctxt, OSUINT64 *pvalue)
This function reads an integer, using standard decimal notation, into an 64-bit unsigned integer...
EXTERNRT int rtxTxtReadInt16(OSCTXT *pctxt, OSINT16 *pvalue)
This function reads an integer, using standard decimal notation, into an 16-bit signed integer...
EXTERNRT int rtxTxtPeekChar(OSCTXT *pctxt, OSUTF8CHAR *pch, OSBOOL skipWs)
This function determines the next character in the input.
EXTERNRT int rtxTxtWriteUInt(OSCTXT *pctxt, OSUINT32 value)
This writes a 32-bit unsigned integer to the buffer using standard decimal (base 10) notation...
Run-time context structure.
Definition: rtxContext.h:197
EXTERNRT int rtxTxtWriteInt64(OSCTXT *pctxt, OSINT64 value)
This writes a 64-bit signed integer to the buffer using standard decimal (base 10) notation...
EXTERNRT int rtxTxtReadInt64(OSCTXT *pctxt, OSINT64 *pvalue)
This function reads an integer, using standard decimal notation, into an 64-bit signed integer...
EXTERNRT int rtxTxtReadUInt8(OSCTXT *pctxt, OSUINT8 *pvalue)
This function reads an integer, using standard decimal notation, into an 8-bit unsigned integer...
EXTERNRT int rtxTxtWriteUInt64(OSCTXT *pctxt, OSUINT64 value)
This writes a 64-bit unsigned integer to the buffer using standard decimal (base 10) notation...