Cambridge SMT System
|
class that expands a wildcard into its actual value. This is useful e.g. for filenames ranging several sentences More...
#include <addresshandler.hpp>
Public Member Functions | |
PatternAddress (const std::string &address, const std::string &wildcard="?") | |
Constructor. More... | |
const std::string | get (T idx) |
Expands string and returns. More... | |
const std::string | operator() (T idx) |
Expands string and returns. More... | |
const std::string | operator() () |
Returns original string, without replacing any wildcard. More... | |
class that expands a wildcard into its actual value. This is useful e.g. for filenames ranging several sentences
Definition at line 33 of file addresshandler.hpp.
|
inline |
Constructor.
address | string containing wildcards |
wildcard | Wildcard that will be parsed. By default, ? |
Definition at line 48 of file addresshandler.hpp.
|
inline |
Expands string and returns.
idx | Actual index to expand the wildcard with. |
Definition at line 59 of file addresshandler.hpp.
|
inline |
Expands string and returns.
idx | Actual index to expand the wildcard with. |
Definition at line 72 of file addresshandler.hpp.
|
inline |
Returns original string, without replacing any wildcard.
Definition at line 81 of file addresshandler.hpp.