Asciil Class Reference
#include <asciil.h>
List of all members.
Detailed Description
String representation consisting of a byte indicating length, followed by character data. String length is limited to 255 characters.
- Author:
- James Fuller,,, <james>
Constructor & Destructor Documentation
Default Creator
- Parameters:
-
Asciil::Asciil |
( |
char * |
pcBuf |
) |
|
Creator from ASCIIZ string
- Parameters:
-
Asciil::Asciil |
( |
Asciil & |
al |
) |
|
Asciil::Asciil |
( |
QString & |
as |
) |
|
Creator from QString
- Parameters:
-
Destructor
- Parameters:
-
- Returns:
- None
Member Function Documentation
void Asciil::fromQString |
( |
QString & |
as, |
|
|
int |
iLimit | |
|
) |
| | |
Converter from QString with length limit
- Parameters:
-
| as | Source |
| iLimit | Length to convert |
void Asciil::fromQString |
( |
QString & |
as |
) |
|
Converter from QString
- Parameters:
-
void Asciil::insert |
( |
QString |
as, |
|
|
int |
iStart | |
|
) |
| | |
Insert string at index
- Parameters:
-
| as | String to be inserted |
| iStart | Position to insert it |
bool Asciil::isEmpty |
( |
void |
|
) |
|
Test for Empty string
- Parameters:
-
- Returns:
- bool True if empty
int Asciil::length |
( |
void |
|
) |
|
Returns length of string
- Parameters:
-
- Returns:
- int
char * Asciil::memory |
( |
void |
|
) |
|
Ptr to internal data allocation
- Parameters:
-
- Returns:
- Pointer
Asciil & Asciil::operator= |
( |
char * |
pcBuf |
) |
|
Converter from ASCIIZ string
- Parameters:
-
- Returns:
- Reference to object
Copy
- Parameters:
-
- Returns:
- Reference to object
void Asciil::remove |
( |
int |
iStart, |
|
|
int |
iLength | |
|
) |
| | |
Delete characters from index
- Parameters:
-
| iStart | First charater to be deleted |
| iLength | Number of characters to be deleted |
void Asciil::renderAsAsciil |
( |
char * |
array, |
|
|
int |
iLength, |
|
|
QString |
as | |
|
) |
| | [static] |
Make an Asciil string in a specified buffer
- Parameters:
-
| array | Buffer |
| iLength | Size of buffer |
| as | String to convert |
void Asciil::replace |
( |
QString & |
asFind, |
|
|
QString & |
asRep | |
|
) |
| | |
Replace substring
- Parameters:
-
| asFind | String to remove |
| asRep | Replacement string |
int Asciil::size |
( |
void |
|
) |
|
Return size of internal memory allocation
- Parameters:
-
- Returns:
- Byte count
QString Asciil::toQString |
( |
void |
|
) |
|
Converter to QString
- Parameters:
-
- Returns:
- QString
The documentation for this class was generated from the following files:
- schematux/src/asciil.h
- schematux/src/asciil.cpp