AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
StringUtils.cpp File Reference
#include <algorithm>
#include <iostream>
#include <errno.h>
#include <iomanip>
#include <limits>
#include <stdlib.h>
#include "AVSCommon/Utils/Logger/Logger.h"
#include "AVSCommon/Utils/String/StringUtils.h"
Include dependency graph for StringUtils.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::string
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string alexaClientSDK::avsCommon::utils::string::TAG ("StringUtils")
 String to identify log entries originating from this file. More...
 
bool alexaClientSDK::avsCommon::utils::string::stringToInt (const std::string &str, int *result)
 
bool alexaClientSDK::avsCommon::utils::string::stringToInt (const char *str, int *result)
 
std::string alexaClientSDK::avsCommon::utils::string::byteVectorToString (const std::vector< uint8_t > &byteVector)
 
std::string alexaClientSDK::avsCommon::utils::string::stringToLowerCase (const std::string &input)
 
std::string alexaClientSDK::avsCommon::utils::string::stringToUpperCase (const std::string &input)
 
bool alexaClientSDK::avsCommon::utils::string::stringToInt64 (const std::string &str, int64_t *result)
 
bool alexaClientSDK::avsCommon::utils::string::stringToInt64 (const char *str, int64_t *result)
 
std::string alexaClientSDK::avsCommon::utils::string::replaceAllSubstring (const std::string &str, const std::string &from, const std::string &to)
 
std::string alexaClientSDK::avsCommon::utils::string::ltrim (const std::string &str)
 

Variables

static const int alexaClientSDK::avsCommon::utils::string::BASE_TEN = 10
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0