Offers a sort class to sort text blocks, from strings or stc component.
More...
#include <wex/factory/sort.h>
|
| | sort (sort_t t=sort_t(), size_t pos=0, size_t len=std::string::npos) |
| | Default constructor.
|
| |
|
bool | selection (factory::stc *stc) |
| | Sorts selected text on specified component, returns true if sorted ok.
|
| |
| const std::string | string (const std::string &input, const std::string &separators) |
| | Sorts specified input, returns string with sorted text.
|
| |
Offers a sort class to sort text blocks, from strings or stc component.
◆ anonymous enum
The sort flags.
| Enumerator |
|---|
| SORT_DESCENDING | sort descending order
|
| SORT_UNIQUE | flag to remove doubles
|
◆ sort()
| wex::factory::sort::sort |
( |
sort_t | t = sort_t(), |
|
|
size_t | pos = 0, |
|
|
size_t | len = std::string::npos ) |
Default constructor.
- Parameters
-
| t | sort type |
| pos | position of the first character to be sorted |
| len | number of characters to sort string::npos indicates all characters until eol |
◆ string()
| const std::string wex::factory::sort::string |
( |
const std::string & | input, |
|
|
const std::string & | separators ) |
Sorts specified input, returns string with sorted text.
- Parameters
-
| input | text to sort |
| separators | characters to split lines |