Parse Options Implementation.
More...
|
void | tokenize (const std::string &str, std::vector< uint32_t > &tokens, const std::string &delimiters) |
|
int32_t | parse_options (int32_t *argcp, char ***argvp, parsing_ctx *options, uint32_t nops) |
|
void | print_usage (std::string progname, parsing_ctx *options, uint32_t nops) |
|
Parse Options Implementation.
- Author
- micha.nosp@m.el.z.nosp@m.ohner.nosp@m.@ec-.nosp@m.sprid.nosp@m.e.de
- Copyright
- ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2015 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
void tokenize |
( |
const std::string & |
str, |
|
|
std::vector< uint32_t > & |
tokens, |
|
|
const std::string & |
delimiters |
|
) |
| |
takes a string in the Format "i|i|i|..." (integers separated by '|') and returns a vector of all integers
- Parameters
-
str | the string to tokenize |
tokens | the result vector of wire id |