Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
string::generate::RandomSubstringFactory Class Reference

#include <RandomSubstringFactory.h>

Static Public Member Functions

template<class SymbolType >
static string::LinearString< SymbolType > generateSubstring (size_t size, const string::LinearString< SymbolType > &string)
 

Detailed Description

Generates a radnom substring of given size from a string.

Member Function Documentation

◆ generateSubstring()

template<class SymbolType >
string::LinearString< SymbolType > string::generate::RandomSubstringFactory::generateSubstring ( size_t  size,
const string::LinearString< SymbolType > &  string 
)
static

Generates a random substring of a given size from a string.

Template Parameters
SymbolTypethe type of symbols in the string
Parameters
sizethe length of generated substring
stringthe source string of the substring
Returns
a substring of the string
Here is the call graph for this function:

The documentation for this class was generated from the following file: