AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Functions | |
bool | stringToInt (const std::string &str, int *result) |
bool | stringToInt (const char *str, int *result) |
bool | stringToInt64 (const std::string &str, int64_t *result) |
bool | stringToInt64 (const char *str, int64_t *result) |
std::string | byteVectorToString (const std::vector< uint8_t > &byteVector) |
std::string | stringToLowerCase (const std::string &input) |
std::string | stringToUpperCase (const std::string &input) |
std::string | replaceAllSubstring (const std::string &str, const std::string &from, const std::string &to) |
std::string | ltrim (const std::string &str) |
std::string alexaClientSDK::avsCommon::utils::string::byteVectorToString | ( | const std::vector< uint8_t > & | byteVector | ) |
A utility function to convert a vector of bytes to a printable string. For example, the vector {1, 2, 3} will return the string "0x01 0x02 0x03"
byteVector | a vector of bytes |
std::string alexaClientSDK::avsCommon::utils::string::ltrim | ( | const std::string & | str | ) |
Trim whitespace from the left.
str | the string to trim from the left |
std::string alexaClientSDK::avsCommon::utils::string::replaceAllSubstring | ( | const std::string & | str, |
const std::string & | from, | ||
const std::string & | to | ||
) |
Replaces all occurrences of a substring with another string.
str | The reference string. |
from | The string to find. |
to | The replacement string. |
bool alexaClientSDK::avsCommon::utils::string::stringToInt | ( | const std::string & | str, |
int * | result | ||
) |
A utility function to convert a std::string to an integer. If the string is successfully parsed, then the out parameter will be updated.
str | The string input. | |
[out] | result | The resulting integer, if successfully parsed from the string. |
true
If the string was parsed as an integer, otherwise false
. bool alexaClientSDK::avsCommon::utils::string::stringToInt | ( | const char * | str, |
int * | result | ||
) |
A utility function to convert a c-string to an integer. If the string is successfully parsed, then the out parameter will be updated.
str | The C-string input. | |
[out] | result | The resulting integer, if successfully parsed from the string. |
true
If the string was parsed as an integer, otherwise false
. bool alexaClientSDK::avsCommon::utils::string::stringToInt64 | ( | const std::string & | str, |
int64_t * | result | ||
) |
A utility function to convert a string to an integer 64 bits. If the string is successfully parsed, then the out parameter will be updated.
str | The string input. | |
[out] | result | The resulting integer, if successfully parsed from the string. |
true
If the string was parsed as an integer, otherwise false
. bool alexaClientSDK::avsCommon::utils::string::stringToInt64 | ( | const char * | str, |
int64_t * | result | ||
) |
A utility function to convert a c-string to an integer 64 bits. If the string is successfully parsed, then the out parameter will be updated.
str | The C-string input. | |
[out] | result | The resulting integer, if successfully parsed from the string. |
true
If the string was parsed as an integer, otherwise false
. std::string alexaClientSDK::avsCommon::utils::string::stringToLowerCase | ( | const std::string & | input | ) |
A utility function to convert a string into lower case.
input | The input string to be converted. |
std::string alexaClientSDK::avsCommon::utils::string::stringToUpperCase | ( | const std::string & | input | ) |
A utility function to convert a string into upper case.
input | The input string to be converted. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0