Go to the documentation of this file.
28 #include <type_traits>
30 #include "absl/strings/str_format.h"
42 void DefaultGlobalConfigEnvErrorFunction(
const char* error_message) {
47 DefaultGlobalConfigEnvErrorFunction;
49 void LogParsingError(
const char*
name,
const char*
value) {
51 "Illegal value '%s' specified for environment variable '%s'",
value,
53 (*g_global_config_env_error_func)(error_message.c_str());
59 g_global_config_env_error_func =
func;
75 for (
char* c =
name_; *c != 0; ++c) {
81 "GlobalConfigEnvBool needs to be trivially destructible.");
102 "GlobalConfigEnvInt32 needs to be trivially destructible.");
106 if (
str ==
nullptr) {
126 "GlobalConfigEnvString needs to be trivially destructible.");
130 if (
str ==
nullptr) {
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
void SetGlobalConfigEnvErrorFunction(GlobalConfigEnvErrorFunctionType func)
bool gpr_parse_bool_value(const char *value, bool *dst)
char * gpr_getenv(const char *name)
#define GPR_LTOA_MIN_BUFSIZE
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
void(* GlobalConfigEnvErrorFunctionType)(const char *error_message)
void Set(const char *value)
UniquePtr< char > GetValue()
void SetValue(const char *value)
const char * default_value_
GPRAPI char * gpr_strdup(const char *src)
void gpr_unsetenv(const char *name)
int gpr_ltoa(long value, char *output)
void gpr_setenv(const char *name, const char *value)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:28