hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
parser Namespace Reference

Functions

boost::optional< std::string > parseFirstCommand (std::string line)
 
bool isIntNumber (const std::string &s)
 
std::vector< std::string > split (std::string line)
 
template<typename T >
boost::optional< T > parseValue (std::string word)
 

Detailed Description

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Function Documentation

bool parser::isIntNumber ( const std::string &  s)

Check if string is actually the integer number

Parameters
s
Returns

Here is the caller graph for this function:

boost::optional< std::string > parser::parseFirstCommand ( std::string  line)

Parse the first command in the line

Parameters
linestring to parse
Returns
nullopt if no command found, string otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
boost::optional<T> parser::parseValue ( std::string  word)

Here is the call graph for this function:

std::vector< std::string > parser::split ( std::string  line)

Split line into words

Parameters
line
Returns
vector with words

Here is the caller graph for this function: