Datatypes:
char* | C character string |
AjPStr | String |
const AjPStr | String constant |
AjIStr | String iterator |
AjPStrTok | String token parser |
Sections:
constructors | Constructors |
destructors | Destructors |
formatting | Modifiers |
comparison | General use |
comparison (sorting) | General use |
parsing functions | General use |
Functions:
ajCharNewC | A text string constructor which allocates memory for a string and initialises it with the text string provided. |
ajCharNewS | A text string constructor which allocates memory for a string and initialises it with the string provided. |
ajCharNewRes | A text string constructor which allocates memory for a string of the specified length and initialises the contents as an empty string. |
ajCharNewResC | A text string constructor which allocates memory for a string of the specified length and initialises it with the text string provided. |
ajCharNewResS | A text string constructor which allocates memory for a string of the specified length and initialises it with the string provided. |
ajCharNewResLenC | A text string constructor which allocates memory for a string of the specified length and initialises it with the text string provided. |
ajCharNull | Returns a pointer to an empty string |
char* ajCharNewC ( const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Initial text, possibly shorter than the space allocated. |
char* | RETURN | A new text string. |
From EMBOSS 1.0.0
char* ajCharNewS ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String object as initial value and size for the text. |
char* | RETURN | A new text string. |
From EMBOSS 4.0.0
char* ajCharNewRes ( size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
size_t | size | Input | Length of the Cstring, excluding the trailing NULL. |
char* | RETURN | A new text string with no contents. |
From EMBOSS 4.0.0
char* ajCharNewResC ( const char* txt, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String object as initial value and size for the text. |
size_t | size | Input | Maximum string length, as returned by strlen |
char* | RETURN | A new text string. |
From EMBOSS 4.0.0
char* ajCharNewResS ( const AjPStr str, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String object as initial value and size for the text. |
size_t | size | Input | Maximum string length, as returned by strlen |
char* | RETURN | A new text string. |
From EMBOSS 4.0.0
char* ajCharNewResLenC ( const char* txt, size_t size, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String object as initial value and size for the text. |
size_t | size | Input | Maximum string length, as returned by strlen |
size_t | len | Input | Length of txt to save calculation time. |
char* | RETURN | A new text string. |
From EMBOSS 4.0.0
char* ajCharNull ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
char* | RETURN | Empty string |
From EMBOSS 6.0.0
Functions:
ajCharDel | A text string destructor to free memory for a text string. |
void ajCharDel ( char** Ptxt );
Type | Name | Read/Write | Description |
---|---|---|---|
char** | Ptxt | Delete | Text string to be deallocated. |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajCharFmtLower | Converts a text string to lower case. |
ajCharFmtUpper | Converts a text string to upper case. |
AjBool ajCharFmtLower ( char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
char* | txt | Modify | Text string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
AjBool ajCharFmtUpper ( char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
char* | txt | Modify | Text string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
Functions:
ajCharMatchC | Simple test for matching two text strings. |
ajCharMatchCaseC | Simple case-insensitive test for matching two text strings. |
ajCharMatchWildC | Simple case-sensitive test for matching two text strings using wildcard characters. |
ajCharMatchWildS | Simple case-sensitive test for matching a text string and a string using wildcard characters. |
ajCharMatchWildCaseC | Simple case-insensitive test for matching two text strings using wildcard characters. |
ajCharMatchWildCaseS | Simple case-insensitive test for matching a text string and a string using wildcard characters. |
ajCharMatchWildNextC | Test for matching the next 'word' in two text strings using wildcard characters. |
ajCharMatchWildNextCaseC | Test for matching the next 'word' in two text strings using wildcard characters, case-insensitive. |
ajCharMatchWildWordC | Case-sensitive test for matching a text string 'word' against any word in a test text string using wildcard characters. |
ajCharMatchWildWordCaseC | Case-insensitive test for matching a text string 'word' against any word in a text string using wildcard characters. |
ajCharPrefixC | Test for matching the start of a text string against a given prefix text string. |
ajCharPrefixS | Test for matching the start of a text string against a given prefix string. |
ajCharPrefixCaseC | Case-insensitive test for matching the start of a text string against a given prefix text string. |
ajCharPrefixCaseS | Case-insensitive test for matching start of a text string against a given prefix string, |
ajCharSuffixC | Test for matching the end of a text string against a given suffix text string. |
ajCharSuffixS | Test for matching the end of a text string against a given suffix string. |
ajCharSuffixCaseC | Case-insensitive test for matching the end of a text string against a given suffix text string. |
ajCharSuffixCaseS | Case-insensitive test for matching the end of a text string against a given suffix string. |
AjBool ajCharMatchC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if text completely matches the start of String |
From EMBOSS 4.0.0
AjBool ajCharMatchCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if two strings are exactly the same excluding case |
From EMBOSS 4.0.0
AjBool ajCharMatchWildC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 4.0.0
AjBool ajCharMatchWildS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const AjPStr | str | Input | Wildcard text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 4.0.0
AjBool ajCharMatchWildCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 4.1.0
AjBool ajCharMatchWildCaseS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const AjPStr | str | Input | Wildcard text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 4.1.0
AjBool ajCharMatchWildNextC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajCharMatchWildNextCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.1.0
AjBool ajCharMatchWildWordC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Wildcard word |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajCharMatchWildWordCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Wildcard word |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.1.0
AjBool ajCharPrefixC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Test string as text |
const char* | txt2 | Input | Prefix as text |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajCharPrefixS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Test string as text |
const AjPStr | str | Input | Prefix as string |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajCharPrefixCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Text |
const char* | txt2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajCharPrefixCaseS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Text |
const AjPStr | str | Input | Prefix |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajCharSuffixC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Suffix as text |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
AjBool ajCharSuffixS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Test string as text |
const AjPStr | str | Input | Suffix as string |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
AjBool ajCharSuffixCaseC ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Suffix as text |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
AjBool ajCharSuffixCaseS ( const char* txt, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Test string as text |
const AjPStr | str | Input | Suffix as string |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
Functions:
ajCharCmpCase | Finds the sort order of two text strings. |
ajCharCmpCaseLen | Finds the sort order of substrings from the start of two text strings. |
ajCharCmpWild | Finds the sort-order (case insensitive) of two text strings using wildcard characters. |
ajCharCmpWildCase | Finds the sort-order (case sensitive) of two text strings using wildcard characters. |
int ajCharCmpCase ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Text string |
const char* | txt2 | Input | Text string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajCharCmpCaseLen ( const char* txt, const char* txt2, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Text string |
const char* | txt2 | Input | Text string |
size_t | len | Input | length |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajCharCmpWild ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajCharCmpWildCase ( const char* txt, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String |
const char* | txt2 | Input | Text |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.1.0
Functions:
ajCharParseC | Simple token parsing from text string using a specified set of delimiters. |
AjPStr ajCharParseC ( const char* txt, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | String to be parsed (first call) or NULL for follow-up calls using the same string, as for the C RTL function strtok which is eventually called. |
const char* | txtdelim | Input | Delimiter(s) to be used between tokens. |
AjPStr | RETURN | Token |
From EMBOSS 4.0.0
Sections:
constructors | Constructors |
destructors | Destructors |
assignment | Assignments |
combination functions | Modifiers |
cutting | Modifiers |
substitution | Modifiers |
query | General use |
element retrieval | General use |
modifiable string retrieval | Modifiers |
element assignment | Modifiers |
string to datatype conversion functions | Casts |
datatype to string conversion functions | Derievd values |
formatting | Modifiers |
comparison | General use |
comparison (sorting) | General use |
comparison (search) functions | General use |
parsing functions | General use |
debugging | Miscellaneous |
exit | Miscellaneous |
Functions:
ajStrNew | Default string constructor which allocates memory for a string. |
ajStrNewC | String constructor which allocates memory for a string and initialises it with the text string provided. |
ajStrNewK | String constructor which allocates memory for a string and initialises it with the single character provided. |
ajStrNewS | String constructor which allocates memory for a string and initialises it with the string provided. |
ajStrNewRef | String referencing function which returns a pointer to the string passed in and increases its reference count. |
ajStrNewRes | String constructor which allocates memory for a string of an initial reserved size (including a possible null). |
ajStrNewResC | String constructor which allocates memory for a string of an initial reserved size (including a possible null) and initialises it with the text string provided. |
ajStrNewResS | String constructor which allocates memory for a string of an initial reserved size (including a possible null) and initialises it with the string provided. |
ajStrNewResLenC | String constructor which allocates memory for a string of a given length and of an initial reserved size (including a possible null) and initialises it with the text string provided. |
AjPStr ajStrNew ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr | RETURN | Pointer to an empty string |
From EMBOSS 1.0.0
AjPStr ajStrNewC ( const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Null-terminated character string to initialise the new string. |
AjPStr | RETURN | Pointer to a string containing the supplied text |
From EMBOSS 1.0.0
AjPStr ajStrNewK ( char ch );
Type | Name | Read/Write | Description |
---|---|---|---|
char | ch | Input | Null-terminated character string to initialise the new string. |
AjPStr | RETURN | Pointer to a string containing the supplied text |
From EMBOSS 6.2.0
AjPStr ajStrNewS ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be cloned |
AjPStr | RETURN | Pointer to a string of the specified size containing the supplied text. |
From EMBOSS 1.0.0
AjPStr ajStrNewRef ( AjPStr refstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr | refstr | Modify | AJAX string object |
AjPStr | RETURN | Pointer to the string passed as an argument, with its use count increased by 1. |
From EMBOSS 4.0.0
AjPStr ajStrNewRes ( size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
size_t | size | Input | Reserved size (including a possible null). |
AjPStr | RETURN | Pointer to an empty string of specified size. |
From EMBOSS 4.0.0
AjPStr ajStrNewResC ( const char* txt, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Null-terminated character string to initialise the new string. |
size_t | size | Input | Reserved size (including a possible null). |
AjPStr | RETURN | Pointer to a string of the specified size containing the supplied text. |
From EMBOSS 4.0.0
AjPStr ajStrNewResS ( const AjPStr str, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to initialise the new string. |
size_t | size | Input | Reserved size (including a possible null). |
AjPStr | RETURN | Pointer to a string of the specified size containing the supplied text. |
From EMBOSS 4.0.0
AjPStr ajStrNewResLenC ( const char* txt, size_t size, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Null-terminated character string to initialise the new string. |
size_t | size | Input | Reserved size, including a trailing null and possible space for expansion |
size_t | len | Input | Length of txt to save calculation time. |
AjPStr | RETURN | Pointer to a string of the specified size containing the supplied text. |
From EMBOSS 4.0.0
Functions:
MAJSTRDEL | |
ajStrDel | Default string destructor which frees memory for a string. |
ajStrDelStatic | String dereferencing function which sets a string pointer to NULL and decrements the use count of the string to which it referred. Strings with a use count of 1 are *not* freed to avoid freeing and reallocating memory when they are reused. |
ajStrDelarray | Default string destructor which frees memory for an array of strings. |
void ajStrDel ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Delete | Pointer to the string to be deleted. The pointer is always deleted. |
void | RETURN |
From EMBOSS 1.0.0
AjBool ajStrDelStatic ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Pointer to the string to be deleted. |
AjBool | RETURN | True if the string exists and can be reused False if the string was deleted. |
From EMBOSS 4.0.0
void ajStrDelarray ( AjPStr** PPstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr** | PPstr | Delete | Pointer to the string array to be deleted. The last string is a NULL pointer The pointer is always deleted. |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrAssignC | Copy a text string to a string. |
ajStrAssignK | Copy a single character to a string. |
ajStrAssignS | Copy a string to a string. |
ajStrAssignClear | Clear the string value |
ajStrAssignEmptyC | Ensures a string is set (has a value). If the string is set it is left alone, otherwise it is initialised with a text string. |
ajStrAssignEmptyS | Ensures a string is set (has a value). If the string is set it is left alone, otherwise it is initialised with a string. |
ajStrAssignLenC | Copy a text string of a given length to a string. |
ajStrAssignRef | String referencing function which makes a string point to another. Increases the reference count of the string pointed to. |
ajStrAssignResC | Copy a text string to a string with a minimum reserved size. |
ajStrAssignResS | Copy a string to a string with a minimum reserved size. |
ajStrAssignSubC | Copies a substring of a text string to a string. |
ajStrAssignSubS | Copies a substring of a string to a string. |
AjBool ajStrAssignC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
const char* | txt | Input | Source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignK ( AjPStr* Pstr, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
char | chr | Input | Source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
const AjPStr | str | Input | Source string. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignClear ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 6.0.0
AjBool ajStrAssignEmptyC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string which is overwritten. |
const char* | txt | Input | Source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignEmptyS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string which is overwritten. |
const AjPStr | str | Input | Source string object. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignLenC ( AjPStr* Pstr, const char* txt, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
const char* | txt | Input | Source text. |
size_t | len | Input | Length of source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignRef ( AjPStr* Pstr, AjPStr refstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string which is overwritten. |
AjPStr | refstr | Modify | Source string object Copy by reference count so not const. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignResC ( AjPStr* Pstr, size_t size, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
size_t | size | Input | Space to reserve. |
const char* | txt | Input | Source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignResS ( AjPStr* Pstr, size_t size, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
size_t | size | Input | Size of new string. |
const AjPStr | str | Input | Source text. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignSubC ( AjPStr* Pstr, const char* txt, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const char* | txt | Input | Source text |
ajlong | pos1 | Input | start position for substring |
ajlong | pos2 | Input | end position for substring |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAssignSubS ( AjPStr* Pstr, const AjPStr str, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const AjPStr | str | Input | Source string |
ajlong | pos1 | Input | Start position in src of substring |
ajlong | pos2 | Input | End position in src of substring |
AjBool | RETURN | ajTrue if Pstr was (re)allocated, ajFalse otherwise |
pos1: negative values count from the end of the string with -1 as the last position
pos2: negative values count from the end of the string with -1 as the last position From EMBOSS 1.0.0
Functions:
ajStrAppendC | Appends a text string to the end of a string. |
ajStrAppendK | Appends a character to the end of a string. |
ajStrAppendS | Appends a string to the end of another string. |
ajStrAppendCountK | Appends any number of a given character to the end of a string. |
ajStrAppendLenC | Appends a text string of a given length to the end of a string. |
ajStrAppendSubC | Appends a substring of a string to the end of another string. |
ajStrAppendSubS | Appends a substring of a string to the end of another string. |
ajStrInsertC | Insert a text string into a string at a specified position. |
ajStrInsertK | Inserts a character into a string at a specified position. |
ajStrInsertS | Inserts a text string into a string at a specified position. |
ajStrJoinC | Cut down string at pos1 and add string2 from position pos2. |
ajStrJoinS | Appends one string to another after cutting both strings. |
ajStrMaskIdent | Masks out characters from a string that are identical to a second string. |
ajStrMaskRange | Masks out characters from a string over a specified range. |
ajStrPasteS | Overwrite one string with another. |
ajStrPasteCountK | Overwrites a string with a number of single characters. |
ajStrPasteMaxC | Overwrite one string with a specified number of characters from a text string. |
ajStrPasteMaxS | Overwrite one string with a specified number of characters from another string. |
AjBool ajStrAppendC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const char* | txt | Input | Source text |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAppendK ( AjPStr* Pstr, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
char | chr | Input | Source character |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAppendS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const AjPStr | str | Input | Source string |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAppendCountK ( AjPStr* Pstr, char chr, ajulong num );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
char | chr | Input | Source character |
ajulong | num | Input | Repeat count |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAppendLenC ( AjPStr* Pstr, const char* txt, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const char* | txt | Input | Source text |
size_t | len | Input | String length |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrAppendSubC ( AjPStr* Pstr, const char* txt, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const char* | txt | Input | Source string |
ajlong | pos1 | Input | start position for substring |
ajlong | pos2 | Input | end position for substring |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 6.0.0
AjBool ajStrAppendSubS ( AjPStr* Pstr, const AjPStr str, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const AjPStr | str | Input | Source string |
ajlong | pos1 | Input | start position for substring |
ajlong | pos2 | Input | end position for substring |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrInsertC ( AjPStr* Pstr, ajlong pos, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Position where text is to be inserted. Negative position counts from the end |
const char* | txt | Input | Text to be inserted |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrInsertK ( AjPStr* Pstr, ajlong pos, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Position where text is to be inserted. Negative position counts from the end |
char | chr | Input | Text to be inserted |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 2.9.0
AjBool ajStrInsertS ( AjPStr* Pstr, ajlong pos, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Position where text is to be inserted. Negative position counts from the end |
const AjPStr | str | Input | String to be inserted |
AjBool | RETURN | ajTrue on successful completion else ajFalse; |
From EMBOSS 4.0.0
AjBool ajStrJoinC ( AjPStr* Pstr, ajlong pos, const char* txt, ajlong posb );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
ajlong | pos | Input | Number of characters to keep in target string. |
const char* | txt | Input | Text to append. |
ajlong | posb | Input | Position of first character to copy from text. |
AjBool | RETURN | ajTrue on success |
From EMBOSS 1.0.0
AjBool ajStrJoinS ( AjPStr* Pstr, ajlong pos, const AjPStr str, ajlong posb );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
ajlong | pos | Input | Start position in target string, negative numbers count from the end. |
const AjPStr | str | Input | String to append. |
ajlong | posb | Input | Starts position to copy, negative numbers count from the end. |
AjBool | RETURN | ajTrue on success. |
From EMBOSS 4.0.0
AjBool ajStrMaskIdent ( AjPStr* Pstr, const AjPStr str, char maskchr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const AjPStr | str | Input | Comparison string |
char | maskchr | Input | masking character |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.1.0
AjBool ajStrMaskRange ( AjPStr* Pstr, ajlong pos1, ajlong pos2, char maskchr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
ajlong | pos1 | Input | start position to be masked |
ajlong | pos2 | Input | end position to be masked |
char | maskchr | Input | masking character |
AjBool | RETURN | ajTrue on success, ajFalse if begin is out of range |
From EMBOSS 6.1.0
AjBool ajStrPasteS ( AjPStr* Pstr, ajlong pos, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Position in target string |
const AjPStr | str | Input | String to replace. |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
AjBool ajStrPasteCountK ( AjPStr* Pstr, ajlong pos, char chr, ajulong num );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | position in string |
char | chr | Input | Character to replace. |
ajulong | num | Input | Number of characters to copy from text. |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
AjBool ajStrPasteMaxC ( AjPStr* Pstr, ajlong pos, const char* txt, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Start position in target string. |
const char* | txt | Input | String to replace. |
size_t | len | Input | Number of characters to copy from text. |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
AjBool ajStrPasteMaxS ( AjPStr* Pstr, ajlong pos, const AjPStr str, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajlong | pos | Input | Start position in target string. |
const AjPStr | str | Input | Replacement string |
size_t | len | Input | Number of characters to copy from text. |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
Functions:
ajStrCutBraces | Removes comments enclosed in braces from a string. |
ajStrCutComments | Removes comments from a string. |
ajStrCutCommentsRestpos | Removes comments from a string. |
ajStrCutCommentsStart | Removes comments from a string. |
ajStrCutEnd | Removes a number of characters from the end of a string |
ajStrCutRange | Removes a substring from a string. |
ajStrCutStart | Removes a number of characters from the start of a string |
ajStrKeepRange | Reduces target string to a substring of itself by deleting all except a range of character positions. |
ajStrKeepSetC | Removes all characters from a string that are not in a given set. |
ajStrKeepSetS | Removes all characters from a string that are not in a given set. |
ajStrKeepSetAlpha | Removes all characters from a string that are not alphabetic. |
ajStrKeepSetAlphaC | Removes all characters from a string that are not alphabetic and are not in a given set. |
ajStrKeepSetAlphaS | Removes all characters from a string that are not alphabetic and are not in a given set. |
ajStrKeepSetAlphaRest | Removes all characters from a string that are not alphabetic. |
ajStrKeepSetAlphaRestC | Removes all characters from a string that are not alphabetic and are not in a given set. |
ajStrKeepSetAlphaRestS | Removes all characters from a string that are not alphabetic and are not in a given set. |
ajStrKeepSetAscii | Removes all characters from a string that are not within a range of ASCII character codes. |
ajStrQuoteStrip | Removes any double quotes from a string. |
ajStrQuoteStripAll | Removes any single or double quotes from a string. |
ajStrRemoveDupchar | Removes duplicate characters from a string |
ajStrRemoveGap | Removes non-sequence characters (all but alphabetic characters and asterisk) from a string. |
ajStrRemoveGapF | Removes non-sequence characters (all but alphabetic characters and asterisk) from a string. Also removes floats from an array of the same size |
ajStrRemoveHtml | Removes html from a string. |
ajStrRemoveLastNewline | Removes last character from a string if it is a newline character. |
ajStrRemoveSetC | Removes all of a given set of characters from a string. |
ajStrRemoveWhite | Removes all whitespace characters from a string. |
ajStrRemoveWhiteExcess | Removes excess whitespace characters from a string. |
ajStrRemoveWhiteSpaces | Removes excess space characters from a string. |
ajStrRemoveWild | Removes all characters after the first wildcard character (if found). |
ajStrTrimC | Removes regions with a given character composition from start and end of a string. |
ajStrTrimEndC | Removes a region with a given character composition from end of a string. |
ajStrTrimStartC | Removes a region with a given character composition from start of a string. |
ajStrTrimWhite | Removes regions composed of white space characters only from the start and end of a string. |
ajStrTrimWhiteEnd | Removes regions composed of white space characters only from the end of a string. |
ajStrTrimWhiteStart | Removes regions composed of white space characters only from the start of a string. |
ajStrTruncateLen | Removes the end from a string reducing it to a defined length. |
ajStrTruncatePos | Removes the end from a string by cutting at a defined position. |
AjBool ajStrCutBraces ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Line of text from input file |
AjBool | RETURN | ajTrue if there is some text remaining |
From EMBOSS 6.4.0
AjBool ajStrCutComments ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Line of text from input file |
AjBool | RETURN | ajTrue if there is some text remaining |
From EMBOSS 4.0.0
AjBool ajStrCutCommentsRestpos ( AjPStr* Pstr, AjPStr* Pcomment, size_t* Pstartpos );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Line of text from input file |
AjPStr* | Pcomment | Output | Comment characters deleted |
size_t* | Pstartpos | Output | Comment start position |
AjBool | RETURN | ajTrue if there is some text remaining |
From EMBOSS 6.0.0
AjBool ajStrCutCommentsStart ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Line of text from input file |
AjBool | RETURN | ajTrue if there is some text remaining |
From EMBOSS 4.0.0
AjBool ajStrCutEnd ( AjPStr* Pstr, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
size_t | len | Input | Number of characters to delete from the end |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrCutRange ( AjPStr* Pstr, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
ajlong | pos1 | Input | start position to be cut |
ajlong | pos2 | Input | end position to be cut |
AjBool | RETURN | ajTrue on success, ajFalse if begin is out of range |
From EMBOSS 4.0.0
AjBool ajStrCutStart ( AjPStr* Pstr, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
size_t | len | Input | Number of characters to delete from the start |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrKeepRange ( AjPStr* Pstr, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string. |
ajlong | pos1 | Input | Start position for substring. |
ajlong | pos2 | Input | End position for substring. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrKeepSetC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const char* | txt | Input | Character set to keep |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrKeepSetS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const AjPStr | str | Input | Character set to keep |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 4.1.0
AjBool ajStrKeepSetAlpha ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 4.1.0
AjBool ajStrKeepSetAlphaC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const char* | txt | Input | Non-alphabetic character set to keep |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 4.0.0
AjBool ajStrKeepSetAlphaS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const AjPStr | str | Input | Non-alphabetic character set to keep |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 5.0.0
AjBool ajStrKeepSetAlphaRest ( AjPStr* Pstr, AjPStr* Prest );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
AjPStr* | Prest | Modify | Excluded non-whitespace characters. |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 5.0.0
AjBool ajStrKeepSetAlphaRestC ( AjPStr* Pstr, const char* txt, AjPStr* Prest );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const char* | txt | Input | Non-alphabetic character set to keep |
AjPStr* | Prest | Modify | Excluded non-whitespace characters. |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 5.0.0
AjBool ajStrKeepSetAlphaRestS ( AjPStr* Pstr, const AjPStr str, AjPStr* Prest );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
const AjPStr | str | Input | Non-alphabetic character set to keep |
AjPStr* | Prest | Modify | Excluded non-whitespace characters. |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 5.0.0
AjBool ajStrKeepSetAscii ( AjPStr* Pstr, int minchar, int maxchar );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
int | minchar | Input | Lowest ASCII code to keep |
int | maxchar | Input | Highest ASCII code to keep |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 6.1.0
AjBool ajStrQuoteStrip ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | ajTrue if string is not empty |
From EMBOSS 2.0.1
AjBool ajStrQuoteStripAll ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | True on success |
From EMBOSS 3.0.0
AjBool ajStrRemoveDupchar ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
AjBool | RETURN | True if string is not empty |
From EMBOSS 6.2.0
AjBool ajStrRemoveGap ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
AjBool | RETURN | True if string is not empty |
From EMBOSS 4.0.0
AjBool ajStrRemoveGapF ( AjPStr* Pstr, float* Pfloat );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
float* | Pfloat | Output | Floating point array (e.g. quality scores) |
AjBool | RETURN | True if string is not empty |
From EMBOSS 6.2.0
AjBool ajStrRemoveHtml ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
AjBool | RETURN | ajTrue on success |
From EMBOSS 1.9.0
AjBool ajStrRemoveLastNewline ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
AjBool | RETURN | True is string is not empty |
From EMBOSS 4.0.0
AjBool ajStrRemoveSetC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
const char* | txt | Input | characters to remove |
AjBool | RETURN | True on success |
From EMBOSS 4.0.0
AjBool ajStrRemoveWhite ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrRemoveWhiteExcess ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrRemoveWhiteSpaces ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String to clean. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.1.0
AjBool ajStrRemoveWild ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if the string contained a wildcard and was truncated. |
From EMBOSS 4.0.0
AjBool ajStrTrimC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
const char* | txt | Input | Characters to delete from each end |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrTrimEndC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
const char* | txt | Input | Characters to delete from the end |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 2.3.1
AjBool ajStrTrimStartC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
const char* | txt | Input | Characters to delete from the end |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 3.0.0
AjBool ajStrTrimWhite ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrTrimWhiteEnd ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrTrimWhiteStart ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 6.2.0
AjBool ajStrTruncateLen ( AjPStr* Pstr, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
size_t | len | Input | Length of required string. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrTruncatePos ( AjPStr* Pstr, ajlong pos );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | target string |
ajlong | pos | Input | First position to be deleted. Negative values count from the end |
AjBool | RETURN | True is string was reallocated |
From EMBOSS 4.0.0
Functions:
ajStrExchangeCC | Replace all occurrences in a string of one substring with another. |
ajStrExchangeCS | Replace all occurrences in a string of one substring with another. |
ajStrExchangeKK | Replace all occurrences in a string of one character with another. |
ajStrExchangeSC | Replace all occurrences in a string of one substring with another. |
ajStrExchangeSS | Replace all occurrences in a string of one substring with another. |
ajStrExchangePosCC | Replace one substring with another at a given position in the text. |
ajStrExchangeSetCC | Replace all occurrences in a string of one set of characters with another set. |
ajStrExchangeSetSS | Replace all occurrences in a string of one set of characters with another set. |
ajStrExchangeSetRestCK | Replace all occurrences in a string of one set of characters with a substitute character |
ajStrExchangeSetRestSK | Replace all occurrences in a string not in one set of characters with a substitute character. |
ajStrRandom | Randomly rearranges the characters in a string. |
ajStrReverse | Reverses the order of characters in a string |
AjBool ajStrExchangeCC ( AjPStr* Pstr, const char* txt, const char* txtnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
const char* | txt | Input | string to replace. |
const char* | txtnew | Input | string to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeCS ( AjPStr* Pstr, const char* txt, const AjPStr strnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
const char* | txt | Input | string to replace. |
const AjPStr | strnew | Input | string to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeKK ( AjPStr* Pstr, char chr, char chrnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
char | chr | Input | Character to replace. |
char | chrnew | Input | Character to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeSC ( AjPStr* Pstr, const AjPStr str, const char* txtnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
const AjPStr | str | Input | string to replace. |
const char* | txtnew | Input | string to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeSS ( AjPStr* Pstr, const AjPStr str, const AjPStr strnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
const AjPStr | str | Input | string to replace. |
const AjPStr | strnew | Input | string to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangePosCC ( AjPStr* Pstr, ajlong ipos, const char* txt, const char* txtnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string. |
ajlong | ipos | Input | Position in the string, negative values are from the end of the string. |
const char* | txt | Input | string to replace. |
const char* | txtnew | Input | string to insert. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 5.0.0
AjBool ajStrExchangeSetCC ( AjPStr* Pstr, const char* txt, const char* txtnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
const char* | txt | Input | Unwanted characters |
const char* | txtnew | Input | Replacement characters |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeSetSS ( AjPStr* Pstr, const AjPStr str, const AjPStr strnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
const AjPStr | str | Input | Unwanted characters |
const AjPStr | strnew | Input | Replacement characters |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrExchangeSetRestCK ( AjPStr* Pstr, const char* txt, char chrnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
const char* | txt | Input | Wanted characters |
char | chrnew | Input | Replacement character |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.1.0
AjBool ajStrExchangeSetRestSK ( AjPStr* Pstr, const AjPStr str, char chrnew );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
const AjPStr | str | Input | Wanted characters |
char | chrnew | Input | Replacement character |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.1.0
AjBool ajStrRandom ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | True unless string is empty |
From EMBOSS 1.0.0
AjBool ajStrReverse ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
Functions:
ajStrCalcCountC | Counts occurrences of set of characters in a string. |
ajStrCalcCountK | Counts occurrences of a character in a string. |
ajStrHasParentheses | Tests whether a string contains (possibly nested) pairs of parentheses. |
ajStrIsAlnum | Test whether a string contains alphanumeric characters only (no white space). |
ajStrIsAlpha | Test whether a string contains alphabetic characters only (no white space). |
ajStrIsBool | Tests whether a string represents a valid Boolean value. |
ajStrIsCharsetC | Test whether a string contains specified characters only. |
ajStrIsCharsetS | Test whether a string contains specified characters only. |
ajStrIsCharsetCaseC | Test whether a string contains specified characters only. The test is case-insensitive |
ajStrIsCharsetCaseS | Test whether a string contains specified characters only. The test is case-insensitive |
ajStrIsDouble | Tests whether a string represents a valid double precision value, |
ajStrIsFloat | Tests whether a string represents a valid floating point value. |
ajStrIsHex | Tests whether a string represents a valid hexadecimal value. |
ajStrIsInt | Tests whether a string represents a valid integer value. |
ajStrIsLong | Tests whether a string represents a valid ajlong integer value. |
ajStrIsLower | Tests whether a string contains no upper case alphabetic characters. |
ajStrIsNum | Test whether a string contains decimal digits only. |
ajStrIsUpper | Test whether a string contains no lower case alphabetic characters. |
ajStrIsWhite | Test whether a string contains whitespace characters only. |
ajStrIsWild | Tests whether a string contains the standard wildcard characters * or ?. |
ajStrIsWord | Test whether a string contains no white space characters. |
ajStrWhole | Tests whether a range refers to the whole string |
ajulong ajStrCalcCountC ( const AjPStr str, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt | Input | Characters to count |
ajulong | RETURN | Number of times characters were found in string |
From EMBOSS 4.0.0
ajulong ajStrCalcCountK ( const AjPStr str, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | chr | Input | Character to count |
ajulong | RETURN | Number of times character was found in string |
From EMBOSS 4.0.0
AjBool ajStrHasParentheses ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to test |
AjBool | RETURN | ajTrue if string has zero or more () pairs with possibly other text |
From EMBOSS 4.0.0
AjBool ajStrIsAlnum ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is entirely alphanumeric |
From EMBOSS 1.0.0
AjBool ajStrIsAlpha ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is entirely alphabetic |
From EMBOSS 1.0.0
AjBool ajStrIsBool ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as a boolean. |
From EMBOSS 1.0.0
AjBool ajStrIsCharsetC ( const AjPStr str, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt | Input | Character set to test |
AjBool | RETURN | ajTrue if the string is entirely composed of characters in the specified set |
From EMBOSS 4.1.0
AjBool ajStrIsCharsetS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Character set to test |
AjBool | RETURN | ajTrue if the string is entirely composed of characters in the specified set |
From EMBOSS 4.1.0
AjBool ajStrIsCharsetCaseC ( const AjPStr str, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt | Input | Character set to test |
AjBool | RETURN | ajTrue if the string is entirely composed of characters in the specified set |
From EMBOSS 4.1.0
AjBool ajStrIsCharsetCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Character set to test |
AjBool | RETURN | ajTrue if the string is entirely composed of characters in the specified set |
From EMBOSS 4.1.0
AjBool ajStrIsDouble ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as a double precision number. |
From EMBOSS 1.0.0
AjBool ajStrIsFloat ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as a floating point number. |
From EMBOSS 1.0.0
AjBool ajStrIsHex ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as a hexadecimal value. |
From EMBOSS 1.13.0
AjBool ajStrIsInt ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as an integer. |
From EMBOSS 1.0.0
AjBool ajStrIsLong ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is acceptable as an integer. |
From EMBOSS 1.0.0
AjBool ajStrIsLower ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is entirely alphabetic |
From EMBOSS 2.7.0
AjBool ajStrIsNum ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is entirely numeric |
From EMBOSS 3.0.0
AjBool ajStrIsUpper ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string has no lower case characters. |
From EMBOSS 2.7.0
AjBool ajStrIsWhite ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string is only white space (or empty). |
From EMBOSS 2.9.0
AjBool ajStrIsWild ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if string has wildcards. |
From EMBOSS 1.0.0
AjBool ajStrIsWord ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if the string has no white space |
From EMBOSS 1.0.0
AjBool ajStrWhole ( const AjPStr str, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong | pos1 | Input | Begin position (0 start, negative from the end) |
ajlong | pos2 | Input | Begin position (0 start, negative from the end) |
AjBool | RETURN | ajTrue is range covers the whole string |
From EMBOSS 2.5.0
Functions:
ajStrGetAsciiCommon | Returns the most common ASCII character code in a string. |
ajStrGetAsciiHigh | Returns the highest ASCII character code in a string. |
ajStrGetAsciiLow | Returns the lowest ASCII character code in a string. |
ajStrGetCharFirst | Returns the first character from a string. |
ajStrGetCharLast | Returns the last character from a string. |
ajStrGetCharPos | Returns a single character at a given position from a string. |
ajStrGetLen | Returns the current length of the C (char *) string. |
MAJSTRGETLEN | |
ajStrGetPtr | Returns the current pointer to C (char *) string. |
MAJSTRGETPTR | |
ajStrGetRes | Returns the current reserved size of the C (char *) string. |
MAJSTRGETRES | |
ajStrGetRoom | Returns the additional space available in a string before it would require reallocating. |
ajStrGetUse | Returns the current usage count of the C (char *) string. |
MAJSTRGETUSE | |
ajStrGetValid | Checks a string object for consistency. |
char ajStrGetAsciiCommon ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | RETURN | Most common character or null character if empty. |
From EMBOSS 6.1.0
char ajStrGetAsciiHigh ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | RETURN | Highest character or null character if empty. |
From EMBOSS 6.1.0
char ajStrGetAsciiLow ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | RETURN | Lowest character or null character if empty. |
From EMBOSS 6.1.0
char ajStrGetCharFirst ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | RETURN | First character or null character if empty. |
From EMBOSS 4.0.0
char ajStrGetCharLast ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | RETURN | Last character or null character if empty. |
From EMBOSS 4.0.0
char ajStrGetCharPos ( const AjPStr str, ajlong pos );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong | pos | Input | Position in the string, negative values are from the end of the string. |
char | RETURN | Character at position pos or null character if out of range. |
From EMBOSS 4.0.0
size_t ajStrGetLen ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
size_t | RETURN | Current string length |
From EMBOSS 4.0.0
const char* ajStrGetPtr ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
const char* | RETURN | Current string pointer, or a null string if undefined. |
From EMBOSS 4.0.0
size_t ajStrGetRes ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
size_t | RETURN | Current string reserved size |
From EMBOSS 4.0.0
size_t ajStrGetRoom ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
size_t | RETURN | Space available for additional characters. |
From EMBOSS 4.0.0
ajuint ajStrGetUse ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
ajuint | RETURN | Current string usage count |
From EMBOSS 4.0.0
AjBool ajStrGetValid ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool | RETURN | ajTrue if no errors were found. |
From EMBOSS 4.0.0
Functions:
ajStrGetuniquePtr | Makes the string value unique by copying any string with a reference count of more than 1, and returns the current C (char *) pointer. |
MAJSTRGETUNIQUESTR | |
ajStrGetuniqueStr | Make certain a string is modifiable by checking it has no other references, or by making a new real copy of the string. |
char* ajStrGetuniquePtr ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Source string |
char* | RETURN | Current string pointer, or a null string if undefined. |
From EMBOSS 4.0.0
AjPStr ajStrGetuniqueStr ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjPStr | RETURN | The new string pointer, or NULL for failure |
From EMBOSS 4.0.0
Functions:
ajStrSetClear | Clears all elements in a string object. |
ajStrSetRes | Ensures a string is modifiable and big enough for its intended purpose. |
ajStrSetResRound | Ensures a string is modifiable and big enough for its intended purpose. |
ajStrSetValid | Reset string length when some nasty caller may have edited it |
ajStrSetValidLen | Reset string length when some nasty caller may have edited it |
AjBool ajStrSetClear ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Pointer to the string to be deleted. The pointer is always deleted. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrSetRes ( AjPStr* Pstr, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
size_t | size | Input | Minimum reserved size. |
AjBool | RETURN | ajTrue if the string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrSetResRound ( AjPStr* Pstr, size_t size );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String |
size_t | size | Input | Minimum reserved size. |
AjBool | RETURN | ajTrue if the string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrSetValid ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String. |
AjBool | RETURN | True on success. |
From EMBOSS 4.0.0
AjBool ajStrSetValidLen ( AjPStr* Pstr, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
size_t | len | Input | Length expected. |
AjBool | RETURN | True on success |
From EMBOSS 4.0.0
Functions:
ajStrToBool | Converts a string into a Boolean value. |
ajStrToDouble | Converts a string into a double precision value. |
ajStrToFloat | Converts a string into a floating point value. |
ajStrToHex | Converts a string from hexadecimal into an integer value. |
ajStrToInt | Converts a string into an integer value. |
ajStrToLong | Converts a string into an integer value. |
ajStrToUint | Converts a string into an unsigned integer value. |
ajStrToUlong | Converts a string into an unsigned long integer value. |
AjBool ajStrToBool ( const AjPStr str, AjBool* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjBool* | Pval | Output | ajTrue if the string is "true" as a boolean. |
AjBool | RETURN | ajTrue if the string had a valid boolean value. |
From EMBOSS 1.0.0
AjBool ajStrToDouble ( const AjPStr str, double* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
double* | Pval | Output | String represented as a double precision number. |
AjBool | RETURN | ajTrue if the string had a valid double precision value. |
From EMBOSS 1.0.0
AjBool ajStrToFloat ( const AjPStr str, float* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
float* | Pval | Output | String represented as a floating point number. |
AjBool | RETURN | ajTrue if the string had a valid floating point value. |
From EMBOSS 1.0.0
AjBool ajStrToHex ( const AjPStr str, ajint* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajint* | Pval | Output | String represented as an integer. |
AjBool | RETURN | ajTrue if the string had a valid hexadecimal value. |
From EMBOSS 1.13.0
AjBool ajStrToInt ( const AjPStr str, ajint* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajint* | Pval | Output | String represented as an integer. |
AjBool | RETURN | ajTrue if the string had a valid integer value. |
From EMBOSS 1.0.0
AjBool ajStrToLong ( const AjPStr str, ajlong* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong* | Pval | Output | String represented as an integer. |
AjBool | RETURN | ajTrue if the string had a valid integer value. |
From EMBOSS 1.0.0
AjBool ajStrToUint ( const AjPStr str, ajuint* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajuint* | Pval | Output | String represented as an unsigned integer. |
AjBool | RETURN | ajTrue if the string had a valid unsigned integer value. |
From EMBOSS 4.1.0
AjBool ajStrToUlong ( const AjPStr str, ajulong* Pval );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajulong* | Pval | Output | String represented as an integer. |
AjBool | RETURN | ajTrue if the string had a valid integer value. |
From EMBOSS 6.3.0
Functions:
ajStrFromBool | Converts a Boolean value into a 1-letter string. |
ajStrFromDouble | Converts a double precision value into a string. |
ajStrFromDoubleExp | Converts a double precision value into a string. |
ajStrFromFloat | Converts a floating point value into a string. |
ajStrFromInt | Converts an integer value into a string. |
ajStrFromLong | Converts an ajlong integer value into a string. |
ajStrFromUint | Converts an unsigned integer value into a string. |
ajStrFromVoid | Tests a void pointer and if it is potentially an ASCII string saves it as the output string. |
AjBool ajStrFromBool ( AjPStr* Pstr, AjBool val );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | String to hold the result. |
AjBool | val | Input | Boolean value |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrFromDouble ( AjPStr* Pstr, double val, ajint precision );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
double | val | Input | Double precision value |
ajint | precision | Input | Precision (number of decimal places) to use. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrFromDoubleExp ( AjPStr* Pstr, double val, ajint precision );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
double | val | Input | Double precision value |
ajint | precision | Input | Precision (number of decimal places) to use. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFromFloat ( AjPStr* Pstr, float val, ajint precision );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
float | val | Input | Floating point value |
ajint | precision | Input | Precision (number of decimal places) to use. |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrFromInt ( AjPStr* Pstr, ajint val );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
ajint | val | Input | Integer value |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrFromLong ( AjPStr* Pstr, ajlong val );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
ajlong | val | Input | Long integer value |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 1.0.0
AjBool ajStrFromUint ( AjPStr* Pstr, ajuint val );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
ajuint | val | Input | Integer value |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.1.0
AjBool ajStrFromVoid ( AjPStr* Pstr, const void* vval );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Output | Target string |
const void* | vval | Input | Integer value |
AjBool | RETURN | ajTrue if string was found |
From EMBOSS 6.4.0
Functions:
ajStrFmtBlock | Splits a string into words (blocks) of a given size by inserting spaces. |
ajStrFmtLower | Converts a string to lower case. |
ajStrFmtLowerSub | Converts a substring of a string to lower case. |
ajStrFmtPercentDecode | Converts percent-encoded characters |
ajStrFmtPercentEncodeC | Percent-encoded specified characters |
ajStrFmtPercentEncodeS | Percent-encoded specified characters |
ajStrFmtQuery | Ensures a string is a standard EMBOSS query term with all alphabetic characters in lower case, and any non alphanumeric characters replaced by an underscore |
ajStrFmtQuote | Ensures a string is quoted with double quotes. |
ajStrFmtTitle | Converts the first character of a string to upper case. |
ajStrFmtUpper | Converts a string to upper case. |
ajStrFmtUpperSub | Converts a substring of a string to upper case. |
ajStrFmtWord | Converts a string to a single word. Spaces are converted to underscores. Leading substrings ending in a colon are removed. |
ajStrFmtWrap | Formats a string so that it wraps when printed. |
ajStrFmtWrapAt | Formats a string so that it wraps when printed. Breaks are at a preferred character (for example ',' for author lists) |
ajStrFmtWrapLeft | Formats a string so that it wraps and has a margin of space characters and an additional indent when printed. |
AjBool ajStrFmtBlock ( AjPStr* Pstr, ajulong len );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String. |
ajulong | len | Input | Block size |
AjBool | RETURN | ajTrue on success |
From EMBOSS 4.0.0
AjBool ajStrFmtLower ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFmtLowerSub ( AjPStr* Pstr, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
ajlong | pos1 | Input | start position for conversion |
ajlong | pos2 | Input | end position for conversion |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFmtPercentDecode ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | True if string is not empty. |
From EMBOSS 6.4.0
AjBool ajStrFmtPercentEncodeC ( AjPStr* Pstr, const char* txt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
const char* | txt | Input | Characters to encode |
AjBool | RETURN | True if string is not empty. |
From EMBOSS 6.4.0
AjBool ajStrFmtPercentEncodeS ( AjPStr* Pstr, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
const AjPStr | str | Input | Characters to encode |
AjBool | RETURN | True if string is not empty. |
From EMBOSS 6.4.0
AjBool ajStrFmtQuery ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | True if string is not empty. |
From EMBOSS 6.4.0
AjBool ajStrFmtQuote ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | string |
AjBool | RETURN | True if string is not empty. As it is at least quoted, it will always return true. |
From EMBOSS 4.0.0
AjBool ajStrFmtTitle ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFmtUpper ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFmtUpperSub ( AjPStr* Pstr, ajlong pos1, ajlong pos2 );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
ajlong | pos1 | Input | start position for conversion |
ajlong | pos2 | Input | end position for conversion |
AjBool | RETURN | ajTrue if string was reallocated |
From EMBOSS 4.0.0
AjBool ajStrFmtWord ( AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | String |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajStrFmtWrap ( AjPStr* Pstr, ajuint width );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajuint | width | Input | Line width |
AjBool | RETURN | ajTrue on successful completion else ajFalse; |
From EMBOSS 4.0.0
AjBool ajStrFmtWrapAt ( AjPStr* Pstr, ajuint width, char ch );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajuint | width | Input | Line width |
char | ch | Input | Preferred last character on line |
AjBool | RETURN | ajTrue on successful completion else ajFalse; |
From EMBOSS 5.0.0
AjBool ajStrFmtWrapLeft ( AjPStr* Pstr, ajuint width, ajuint margin, ajuint indent );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pstr | Modify | Target string |
ajuint | width | Input | Line width |
ajuint | margin | Input | Left margin |
ajuint | indent | Input | Left indentation on later lines |
AjBool | RETURN | ajTrue on successful completion else ajFalse; |
From EMBOSS 4.0.0
Functions:
ajStrMatchC | Simple test for matching a string and a text string. |
ajStrMatchS | Simple test for matching two strings. |
ajStrMatchCaseC | Simple case-insensitive test for matching a string and a text string. |
ajStrMatchCaseS | Simple case-insensitive test for matching two strings. |
ajStrMatchWildC | Simple case-sensitive test for matching a string and a text string using wildcard characters. |
ajStrMatchWildS | Simple case-sensitive test for matching two strings using wildcard characters. |
ajStrMatchWildCaseC | Simple case-insensitive test for matching a string and a text string using wildcard characters. |
ajStrMatchWildCaseS | Simple case-insensitive test for matching two strings using wildcard characters. |
ajStrMatchWildWordC | Case-sensitive test for matching a text string "word" against a string using wildcard characters. |
ajStrMatchWildWordS | Case-sensitive test for matching a string "word" against a string using wildcard characters. |
ajStrMatchWildWordCaseC | Case-insensitive test for matching a text string "word" against a string using wildcard characters. |
ajStrMatchWildWordCaseS | Case-insensitive test for matching a string "word" against a string using wildcard characters. |
ajStrMatchWordAllS | Test for matching all words within a string. Matches can be to parts of words in the original string. |
ajStrMatchWordOneS | Test for matching a word within a string. Matches can be to parts of words in the original string. |
ajStrPrefixC | Test for matching the start of a string against a given prefix text string. |
ajStrPrefixS | Test for matching the start of a string against a given prefix string. |
ajStrPrefixCaseC | Case-insensitive test for matching the start of a string against a given prefix text string. |
ajStrPrefixCaseS | Case-insensitive test for matching the start of a string against a given prefix string. |
ajStrSuffixC | Test for matching the end of a string against a given suffix text string. |
ajStrSuffixS | Test for matching the end of a string against a given suffix string. |
ajStrSuffixCaseC | Case-insensitive test for matching the end of a string against a given suffix text string. |
ajStrSuffixCaseS | Case-insensitive test for matching the end of a string against a given suffix string. |
AjBool ajStrMatchC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if two complete strings are the same |
From EMBOSS 1.0.0
AjBool ajStrMatchS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Second String |
AjBool | RETURN | ajTrue if two complete strings are the same |
From EMBOSS 4.0.0
AjBool ajStrMatchCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if two strings are exactly the same excluding case |
From EMBOSS 1.0.0
AjBool ajStrMatchCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Second String |
AjBool | RETURN | ajTrue if two strings are exactly the same excluding case |
From EMBOSS 4.0.0
AjBool ajStrMatchWildC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Wildcard text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 1.0.0
AjBool ajStrMatchWildS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Wildcard string |
AjBool | RETURN | ajTrue if two strings match |
From EMBOSS 4.0.0
AjBool ajStrMatchWildCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Wildcard text |
AjBool | RETURN | ajTrue if the strings match |
From EMBOSS 4.1.0
AjBool ajStrMatchWildCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Wildcard string |
AjBool | RETURN | ajTrue if two strings match |
From EMBOSS 4.1.0
AjBool ajStrMatchWildWordC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajStrMatchWildWordS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajStrMatchWildWordCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.1.0
AjBool ajStrMatchWildWordCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.1.0
AjBool ajStrMatchWordAllS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajStrMatchWordOneS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Text |
AjBool | RETURN | ajTrue if found |
From EMBOSS 4.0.0
AjBool ajStrPrefixC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Prefix as text |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 1.0.0
AjBool ajStrPrefixS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajStrPrefixCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 1.0.0
AjBool ajStrPrefixCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string begins with the prefix |
From EMBOSS 4.0.0
AjBool ajStrSuffixC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Suffix as text |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 1.0.0
AjBool ajStrSuffixS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Suffix |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
AjBool ajStrSuffixCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
AjBool ajStrSuffixCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Prefix |
AjBool | RETURN | ajTrue if the string ends with the suffix |
From EMBOSS 4.0.0
Functions:
MAJSTRCMPC | |
ajStrCmpC | Finds the sort order of a string and a text string. |
ajStrCmpLenC | Finds the sort order of a string and a text string comparing the first n characters only. |
MAJSTRCMPS | |
ajStrCmpS | Finds the sort order of two strings. |
ajStrCmpCaseS | Finds the sort order of two strings using a case-insensitive comparison. |
ajStrCmpLenS | Finds the sort order of two strings comparing the first n characters only. |
ajStrCmpWildC | Finds the sort-order (case insensitive) of string and a text string using wildcard characters. |
ajStrCmpWildS | Finds the sort-order (case insensitive) of two strings using wildcard characters. |
ajStrCmpWildCaseC | Finds the sort-order (case sensitive) of string and a text string using wildcard characters. |
ajStrCmpWildCaseS | Finds the sort-order (case sensitive) of two strings using wildcard characters. |
ajStrVcmp | Finds the sort order of two strings cast as void. |
int ajStrCmpC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String object |
const char* | txt2 | Input | Text string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 1.0.0
int ajStrCmpLenC ( const AjPStr str, const char* txt2, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String object |
const char* | txt2 | Input | Text string |
size_t | len | Input | Length to compare |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajStrCmpS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | First string |
const AjPStr | str2 | Input | Second string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajStrCmpCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | text string |
const AjPStr | str2 | Input | Text string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajStrCmpLenS ( const AjPStr str, const AjPStr str2, size_t len );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String object |
const AjPStr | str2 | Input | Second string object |
size_t | len | Input | Length to compare |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajStrCmpWildC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Wildcard text |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 1.0.0
int ajStrCmpWildS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Wildcard string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
int ajStrCmpWildCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | Wildcard text |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.1.0
int ajStrCmpWildCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | Wildcard string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.1.0
int ajStrVcmp ( const void* str, const void* str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const void* | str | Input | First string |
const void* | str2 | Input | Second string |
int | RETURN | -1 if first string should sort before second, +1 if the second string should sort first. 0 if they are identical in length and content. |
From EMBOSS 4.0.0
Functions:
ajStrFindC | Finds the first occurrence in a string of a second (text) string. |
ajStrFindS | Finds the first occurrence in a string of a second string. |
ajStrFindAnyC | Finds the first occurrence in a string of any character in a second (text) string. |
ajStrFindAnyK | Finds the first occurrence in a string of a specified character. |
ajStrFindAnyS | Finds the first occurrence in a string of any character in a second string. |
ajStrFindCaseC | Finds the first occurrence in a string of a second (text) string using a case-insensitive search. |
ajStrFindCaseS | Finds the first occurrence in a string of a second string using a case-insensitive search. |
ajStrFindNextC | Finds the next occurrence in a string of a second (text) string. |
ajStrFindNextK | Finds the next occurrence in a string of a specified character. |
ajStrFindNextS | Finds the next occurrence in a string of any character in a second string. |
ajStrFindRestC | Finds the first occurrence in a string of any character not in a second (text) string. |
ajStrFindRestS | Finds the first occurrence in a string of any character not in a second (text) string. |
ajStrFindRestCaseC | Finds the first occurrence in a string of any character not in a second (text) string (case-insensitive). |
ajStrFindRestCaseS | Finds the first occurrence in a string of any character not in a second (text) string (case-insensitive). |
ajStrFindlastC | Finds the last occurrence in a string of a second (text) string. |
ajStrFindlastK | Finds the last occurrence in a string of a character. |
ajStrFindlastS | Finds the last occurrence in a string of a second (text) string. |
ajlong ajStrFindC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 1.0.0
ajlong ajStrFindS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.0.0
ajlong ajStrFindAnyC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 3.0.0
ajlong ajStrFindAnyK ( const AjPStr str, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
char | chr | Input | character to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.0.0
ajlong ajStrFindAnyS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.0.0
ajlong ajStrFindCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. |
From EMBOSS 1.7.0
ajlong ajStrFindCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. -1 if not found. |
From EMBOSS 4.0.0
ajlong ajStrFindNextC ( const AjPStr str, ajlong pos1, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong | pos1 | Input | Start position in string |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 6.0.0
ajlong ajStrFindNextK ( const AjPStr str, ajlong pos1, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong | pos1 | Input | Start position in string |
char | chr | Input | character to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 6.0.0
ajlong ajStrFindNextS ( const AjPStr str, ajlong pos1, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
ajlong | pos1 | Input | Start position in string |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 6.0.0
ajlong ajStrFindRestC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.1.0
ajlong ajStrFindRestS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.1.0
ajlong ajStrFindRestCaseC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | txt2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.1.0
ajlong ajStrFindRestCaseS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | str2 | Input | text to find |
ajlong | RETURN | Position of the start of text in string if found. Or -1 for text not found. |
From EMBOSS 4.1.0
ajlong ajStrFindlastC ( const AjPStr str, const char* txt2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to search |
const char* | txt2 | Input | text to look for |
ajlong | RETURN | Position of the text string if found. |
From EMBOSS 4.0.0
ajlong ajStrFindlastK ( const AjPStr str, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to search |
char | chr | Input | Character to look for |
ajlong | RETURN | Position of the character if found. |
From EMBOSS 6.1.0
ajlong ajStrFindlastS ( const AjPStr str, const AjPStr str2 );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to search |
const AjPStr | str2 | Input | text to look for |
ajlong | RETURN | Position of the text string if found. |
From EMBOSS 4.0.0
Functions:
ajStrExtractFirst | Returns a word from the start of a string, and the remainder of the string |
ajStrExtractToken | Returns a word from the start of a string, and the remainder of the string. Leading spaces and punctuation (commas, semicolons) are ignored |
ajStrExtractWord | Returns a word from the start of a string, and the remainder of the string. Leading spaces are skipped. |
ajStrParseC | Tokenise a string using a specified set of delimiters and return tokens from the string. |
ajStrParseCount | Returns the number of tokens in a string, delimited by whitespace |
ajStrParseCountC | Returns the number of tokens in a string using a specified set of delimiters held in a text string. |
ajStrParseCountS | Returns the number of tokens in a string using a specified set of delimiters held in a string. |
ajStrParseCountMultiC | Returns the number of tokens in a string. |
ajStrParseSplit | Splits a newline-separated multi-line string into an array of strings. |
ajStrParseWhite | Tokenise a string using whitespace and return tokens from the string. |
AjBool ajStrExtractFirst ( const AjPStr str, AjPStr* Prest, AjPStr* Pword );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be parsed |
AjPStr* | Prest | Output | Remainder of string |
AjPStr* | Pword | Output | First word of string |
AjBool | RETURN | True if parsing succeeded |
From EMBOSS 4.0.0
AjBool ajStrExtractToken ( const AjPStr str, AjPStr* Prest, AjPStr* Pword );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be parsed |
AjPStr* | Prest | Output | Remainder of string |
AjPStr* | Pword | Output | First token of string |
AjBool | RETURN | True if parsing succeeded |
From EMBOSS 6.4.0
AjBool ajStrExtractWord ( const AjPStr str, AjPStr* Prest, AjPStr* Pword );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be parsed |
AjPStr* | Prest | Output | Remainder of string |
AjPStr* | Pword | Output | First word of string |
AjBool | RETURN | True if parsing succeeded |
From EMBOSS 4.0.0
const AjPStr ajStrParseC ( const AjPStr str, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be parsed (first call) or NULL for follow-up calls using the same string, as for the C RTL function strtok which is eventually called. |
const char* | txtdelim | Input | Delimiter(s) to be used between tokens. |
const AjPStr | RETURN | Token returned, when all tokens are parsed a NULL is returned. |
From EMBOSS 4.0.0
ajuint ajStrParseCount ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to examine. |
ajuint | RETURN | The number of tokens |
From EMBOSS 4.0.0
ajuint ajStrParseCountC ( const AjPStr str, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to examine. |
const char* | txtdelim | Input | String of delimiter characters. |
ajuint | RETURN | The number of tokens |
From EMBOSS 4.0.0
ajuint ajStrParseCountS ( const AjPStr str, const AjPStr strdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to examine. |
const AjPStr | strdelim | Input | String of delimiter characters. |
ajuint | RETURN | The number of tokens |
From EMBOSS 4.0.0
ajuint ajStrParseCountMultiC ( const AjPStr str, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to examine. |
const char* | txtdelim | Input | String of delimiter characters. |
ajuint | RETURN | The number of tokens |
From EMBOSS 4.0.0
ajuint ajStrParseSplit ( const AjPStr str, AjPStr** PPstr );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
AjPStr** | PPstr | Output | pointer to array of AjPStrs |
ajuint | RETURN | Number of array elements created |
From EMBOSS 4.0.0
const AjPStr ajStrParseWhite ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String to be parsed (first call) or NULL for follow-up calls using the same string, as for the C RTL function strtok which is eventually called. |
const AjPStr | RETURN | Token |
From EMBOSS 4.0.0
Functions:
ajStrProbe | Default string memory probe which checks the string object and the string it contains are valid memory |
ajStrStat | Prints a summary of string usage with debug calls. |
ajStrTrace | Checks a string object for consistency and reports its contents. |
ajStrTraceFull | Checks a string object for consistency and reports its contents character by character. |
ajStrTraceTitle | Checks a string object for consistency and reports its contents using a defined title for the report. |
void ajStrProbe ( AjPStr const* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr const* | Pstr | Input | Pointer to the string to be probed. |
void | RETURN |
From EMBOSS 6.0.0
void ajStrStat ( const char* title );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | title | Input | Title for this summary |
void | RETURN |
From EMBOSS 1.0.0
void ajStrTrace ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
void | RETURN |
From EMBOSS 1.0.0
void ajStrTraceFull ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
void | RETURN |
From EMBOSS 4.0.0
void ajStrTraceTitle ( const AjPStr str, const char* title );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const char* | title | Input | Report title |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrExit | Prints a summary of string usage with debug calls. |
void ajStrExit ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
void | RETURN |
From EMBOSS 1.0.0
Sections:
string constant constructors | Constructors |
Functions:
ajStrConstS | Returns an unmodifiable empty string. |
ajStrConstEmpty | Returns an unmodifiable empty string. |
const AjPStr ajStrConstS ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | String |
const AjPStr | RETURN | Pointer to an empty string |
From EMBOSS 6.2.0
const AjPStr ajStrConstEmpty ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | RETURN | Pointer to an empty string |
From EMBOSS 6.2.0
Sections:
constructors | Constructors |
destructors | Destructors |
tests | General use |
resets | Modifiers |
attributes | Casts |
modifiers | Modifiers |
stepping | Modifiers |
Functions:
ajStrIterNew | String iterator constructor which allocates memory for a string iterator, used to iterate over the characters in a string. |
ajStrIterNewBack | String iterator constructor which allocates memory for a string iterator, used to iterate over the characters in a string, from end to start. |
AjIStr ajStrIterNew ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Original string |
AjIStr | RETURN | String Iterator |
From EMBOSS 4.0.0
AjIStr ajStrIterNewBack ( const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Original string |
AjIStr | RETURN | String Iterator |
From EMBOSS 4.0.0
Functions:
ajStrIterDel | String iterator destructor which frees memory for a string iterator. |
void ajStrIterDel ( AjIStr* iter );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr* | iter | Delete | String iterator |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrIterDone | Tests whether a string iterator has completed yet. |
ajStrIterDoneBack | Tests whether a string iterator (from end to start) has completed yet. |
AjBool ajStrIterDone ( const AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjIStr | iter | Input | String iterator. |
AjBool | RETURN | true if complete |
From EMBOSS 4.0.0
AjBool ajStrIterDoneBack ( const AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjIStr | iter | Input | String iterator. |
AjBool | RETURN | true if complete |
From EMBOSS 4.0.0
Functions:
ajStrIterBegin | Sets a string iterator to its start condition, |
ajStrIterEnd | Sets a string iterator to its stop condition. |
void ajStrIterBegin ( AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr | iter | Modify | String iterator. |
void | RETURN |
From EMBOSS 4.0.0
void ajStrIterEnd ( AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr | iter | Modify | String iterator. |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrIterGetC | Returns the remainder of the string at the current string iterator position. |
ajStrIterGetK | Returns the value (character) at the current string iterator position. |
const char* ajStrIterGetC ( const AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjIStr | iter | Input | String iterator. |
const char* | RETURN | Current text string within iterator |
From EMBOSS 4.0.0
char ajStrIterGetK ( const AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjIStr | iter | Input | String iterator. |
char | RETURN | Current character within iterator |
From EMBOSS 4.0.0
Functions:
ajStrIterPutK | Replaces the character at the current string iterator position. |
void ajStrIterPutK ( AjIStr iter, char chr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr | iter | Modify | String iterator. |
char | chr | Input | Character |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrIterNext | Step to next character in string iterator. |
ajStrIterNextBack | Step to previous character in string iterator. |
AjIStr ajStrIterNext ( AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr | iter | Modify | String iterator. |
AjIStr | RETURN | Updated iterator duplicated as return value. |
From EMBOSS 1.0.0
AjIStr ajStrIterNextBack ( AjIStr iter );
Type | Name | Read/Write | Description |
---|---|---|---|
AjIStr | iter | Modify | String iterator. |
AjIStr | RETURN | Updated iterator duplicated as return value. |
From EMBOSS 4.0.0
Sections:
constructors | Constructors |
destructors | Destructors |
assignment | Assignments |
reset | Modifiers |
debugging | Miscellaneous |
parsing | Modifiers |
Functions:
ajStrTokenNewC | String token parser constructor which allocates memory for a string token parser object from a string and a set of default delimiters defined in a text string. |
ajStrTokenNewS | String token parser constructor which allocates memory for a string token parser object from a string and an optional set of default delimiters defined in a text string. |
ajStrTokenNewcharC | String token parser constructor which allocates memory for a string token parser object from a string and a set of default delimiters defined in a text string. |
ajStrTokenNewcharS | String token parser constructor which allocates memory for a string token parser object from a string and an optional set of default delimiters defined in a text string. |
AjPStrTok ajStrTokenNewC ( const AjPStr str, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
const char* | txtdelim | Input | Default delimiter(s) |
AjPStrTok | RETURN | A new string token parser. |
From EMBOSS 4.0.0
AjPStrTok ajStrTokenNewS ( const AjPStr str, const AjPStr strdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | str | Input | Source string |
const AjPStr | strdelim | Input | Default delimiter(s) |
AjPStrTok | RETURN | A new string token parser. |
From EMBOSS 4.0.0
AjPStrTok ajStrTokenNewcharC ( const char* txt, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Source string |
const char* | txtdelim | Input | Default delimiter(s) |
AjPStrTok | RETURN | A new string token parser. |
From EMBOSS 6.4.0
AjPStrTok ajStrTokenNewcharS ( const char* txt, const AjPStr strdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | txt | Input | Source string |
const AjPStr | strdelim | Input | Default delimiter(s) |
AjPStrTok | RETURN | A new string token parser. |
From EMBOSS 6.4.0
Functions:
ajStrTokenDel | String token parser destructor which frees memory for a string token parser. |
void ajStrTokenDel ( AjPStrTok* Ptoken );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Delete | Token parser |
void | RETURN |
From EMBOSS 4.0.0
Functions:
ajStrTokenAssign | Generates a string token parser object from a string without a specific set of delimiters. |
ajStrTokenAssignC | Generates a string token parser object from a string and an optional set of default delimiters defined in a text string. |
ajStrTokenAssignS | Generates a string token parser object from a string and an optional set of default delimiters defined in a string. |
AjBool ajStrTokenAssign ( AjPStrTok* Ptoken, const AjPStr str );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Output | String token object |
const AjPStr | str | Input | Source string |
AjBool | RETURN | ajTrue on success. |
From EMBOSS 4.0.0
AjBool ajStrTokenAssignC ( AjPStrTok* Ptoken, const AjPStr str, const char* txtdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Output | String token object |
const AjPStr | str | Input | Source string |
const char* | txtdelim | Input | Default delimiter(s) |
AjBool | RETURN | ajTrue on success. |
From EMBOSS 4.0.0
AjBool ajStrTokenAssignS ( AjPStrTok* Ptoken, const AjPStr str, const AjPStr strdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Output | String token object |
const AjPStr | str | Input | Source string |
const AjPStr | strdelim | Input | Default delimiter(s) |
AjBool | RETURN | ajTrue on success. |
From EMBOSS 4.0.0
Functions:
ajStrTokenReset | Clears the strings from a string token parser object. |
void ajStrTokenReset ( AjPStrTok* Ptoken );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Output | String token object |
void | RETURN |
From EMBOSS 1.0.0
Functions:
ajStrTokenTrace | Writes a debug trace of a string token parser object. |
void ajStrTokenTrace ( const AjPStrTok token );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStrTok | token | Input | String token object |
void | RETURN |
From EMBOSS 1.0.0
Functions:
ajStrTokenNextFind | Parses tokens from a string using a string token parser. Treats the whole delimiter as a single string between tokens. |
ajStrTokenNextFindC | Parses tokens from a string using a string token parser. Treats the whole delimiter as a single string between tokens. |
ajStrTokenNextParse | Parses tokens from a string using a string token parser. Uses any character defined in the string token parsing object delimiter character set as a delimiter. |
ajStrTokenNextParseC | Parses tokens from a string using a string token parser. Uses any character defined in the delimiter character set as a delimiter. |
ajStrTokenNextParseS | Parses tokens from a string using a string token parser. Uses any character defined in the delimiter character set as a delimiter. |
ajStrTokenNextParseDelimiters | Parses tokens from a string using a string token parser. Uses any character defined in the string token parsing object delimiter character set as a delimiter. |
ajStrTokenNextParseNoskip | Parses tokens from a string using a string token parser. Uses any character defined in the string token parsing object's delimiter character set as a delimiter. |
ajStrTokenRestParse | Returns the remainder of a string that has been partially parsed using a string token parser. |
AjBool ajStrTokenNextFind ( AjPStrTok* Ptoken, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | Token parser. Updated with the delimiter string (if any) in delim. |
AjPStr* | Pstr | Output | Token found |
AjBool | RETURN | ajTrue if another token was found. |
From EMBOSS 4.0.0
AjBool ajStrTokenNextFindC ( AjPStrTok* Ptoken, const char* txtdelim, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | Token parser. Updated with the delimiter string in delim. |
const char* | txtdelim | Input | Delimiter string. |
AjPStr* | Pstr | Output | Token found |
AjBool | RETURN | ajTrue if another token was found. |
From EMBOSS 4.0.0
AjBool ajStrTokenNextParse ( AjPStrTok* Ptoken, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
AjPStr* | Pstr | Output | Next token returned, may be empty if the delimiter has changed. |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 4.0.0
AjBool ajStrTokenNextParseC ( AjPStrTok* Ptoken, const char* txtdelim, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
const char* | txtdelim | Input | Delimiter character set. |
AjPStr* | Pstr | Output | Next token returned, may be empty if the delimiter has changed. |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 4.0.0
AjBool ajStrTokenNextParseS ( AjPStrTok* Ptoken, const AjPStr strdelim, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
const AjPStr | strdelim | Input | Delimiter character set. |
AjPStr* | Pstr | Output | Next token returned, may be empty if the delimiter has changed. |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 4.0.0
AjBool ajStrTokenNextParseDelimiters ( AjPStrTok* Ptoken, AjPStr* Pstr, AjPStr* Pdelim );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
AjPStr* | Pstr | Output | Next token returned, may be empty if the delimiter has changed. |
AjPStr* | Pdelim | Output | Delimiter(s) following the token. |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 6.4.0
AjBool ajStrTokenNextParseNoskip ( AjPStrTok* Ptoken, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
AjPStr* | Pstr | Output | Next token returned, may be empty if the delimiter has changed or if next character was also a delimiter |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 6.2.0
AjBool ajStrTokenRestParse ( AjPStrTok* Ptoken, AjPStr* Pstr );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStrTok* | Ptoken | Modify | String token parsing object. |
AjPStr* | Pstr | Output | Next token returned. |
AjBool | RETURN | True if successfully parsed. False (and string set to empty) if there is nothing more to parse. |
From EMBOSS 4.0.0