Documentation Project 1
ContentsIndexHome
PreviousUpNext
Macros

The following table lists macros in this documentation.

Name 
Description 
Flattens all segments in a line to a single segment result. 
 
Process a line of PTEXT into another line of PTEXT, but with words parsed as appropriate for common language. 
This is macro sack::containers::text::COMMAND_POS_CUR. 
negative with SEEK_SET is SEEK_END -nPos 
This is macro sack::containers::text::DECLTEXT. 
This is macro sack::containers::text::DECLTEXTSZ. 
This is macro sack::containers::text::DECLTEXTSZTYPE. 
This is macro sack::containers::text::DEFTEXT. 
This is macro sack::containers::text::FORALLTEXT. 
This is macro sack::containers::text::HAS_WHITESPACE. 
special coordinate which is NO coordinate 
flag combinatoin which represents actual data is present even with 0 size extended format operations (position, ops) are also considered data. 
Tests a PTEXT segment to see if it might be a floating point number. 
IsSegAnyNumber returns 0 if no, 1 if is int, 2 if is float if pfNumber or piNumber are available then the text pointer will be updated to the next segment after what was used to resolve the number. bUseAllSegs is for testing pTexts which are indirect, such that only all segments within the indirect segment will result valid. pfNumber and piNumber may be passed as NULL, and the function can still be used to determine ifnumber the number resulting in the values pointed to will be filled in with (*pfNumber)=FltCreateFromSeg(p) (or Int as appropriate)
#define IsNumber(p) IsSegAnyNumberEx( &(p), NULL,... more 
 
Duplicates the structure of a line. The resulting line is an exact duplicate of the input line. All segments linked in exactly the same sorts of ways. 
Computes the length of characters in a line, if all segments in the line are flattened into a single word. 
 
This is macro sack::containers::text::LineLengthExx. 
Release a line of text.
A line may be a single segment.
This is the proper way to dispose of PTEXT segments.
Any segment in the line may be passed, the first segment is found, and then all segments in the line are deleted. 
A convenient macro to go from one segment in a line of text to the next segment. 
A convenient macro to go from one segment in a line of text to the prior segment. 
looks like it takes a peice of one segment and appends it to another....
Needs More research to document correctly and exemplify. 
Create a PTEXT with specified number of character capacity. 
Create a text segment from a _64 bit value. (long long int) 
Creates a text segment from a floating point value. Probably uses something like '%g' to format output. Fairly limited. 
Creates a text segment from a 64 bit integer. 
Creates a PTEXT segment from a string. 
Creates a text segment that refers to the parameter indirectly. The new segment is not really a clone, but a reference of the original PTEXT
This duplicates a specific segment. It duplicates the first segment of a string. If the segment has indirect data, then the first segment of the indirect data is duplicated. 
This is macro sack::containers::text::SegExpand. 
Release a single segment. UNSAFE. Does not respect that it is in a list
Split a PTEXT segment. 
Sets a PTEXT to the last segment that it points to. 
Set segment's indirect data. 
Link one PTEXT segment to another. Sets one half of the links appropriate for usage. 
Link one PTEXT segment to another. Sets one half of the links appropriate for usage. 
Sets a pointer to PTEXT to the first text segment in the list
might also check to see if pseg is an indirect - setting this size would be BAD 
Duplicate the whole string of text to another string with exactly the same content. 
define SameText( l1, l2 ) ( strcmp( GetText(l1), GetText(l2) ) ) 
this is something special do not treat as text indirect. 
set for non-text variable 
braced expression 
bracketed expression 
set during burst for last segment... 
on release release indrect also... 
boundry may be ON this value... 
format position is x/y - else space count 
foreground is FORMAT_OP 
test flag, format has position data 
x,y position used (relative) 
size field extually points at PTEXT 
Low bound of value... 
set on first segment to send to omit lead rn 
parenthised expression () 
double quoted string segment " 
single quoted string ' 
declared in program data.... do NOT release 
HTML tag like expression <> 
this segment is not a permanent part (SubstToken) 
Upper bound of a value... 
Adds a single character to a PVARTEXT collector. 
The simplest, most general way to create a PVARTEXT collector. The most extended vartext creator allows specification of how long the initial buffer is, and how much the buffer expands by when required. This was added to optimize building HUGE SQL queries, working withing 100k buffers that expanded by 50k at a time was a lot less operations than expanding 32 bytes or something at a time. 
This is macro sack::containers::text::VarTextCreateExx. 
Destroy a VarText collector. 
Empties a PVARTEXT structure. 
This is macro sack::containers::text::VarTextEnd. 
Add a specified number of characters to the amount of space in the VARTEXT collector. 
Gets the text segment built in the VarText. The PVARTEXT is set to empty. 
Probably should not be exported. Initializes a VARTEXT structure to prepare it for subsequent VarText operations. 
Returns the PTEXT that is currently in a PVARTEXT. It does not alter the contents of the PVARTEXT. Do not LineRelease this peeked value. 
 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!