yast2-core
|
Namespaces | |
agent_ini | |
Classes | |
struct | CallFrame |
Function and source location, for backtraces. More... | |
class | ExecutionEnvironment |
Enumerations | |
enum | crypt_t { CRYPT, MD5, BLOWFISH, SHA256, SHA512 } |
Functions | |
bool | recode (iconv_t cd, const std::string &in, std::string *out) |
bool | recode (iconv_t cd, const std::string &in, std::wstring *out) |
bool | recode (iconv_t cd, const std::wstring &in, std::string *out) |
bool | recode (iconv_t cd, const std::wstring &in, std::wstring *out) |
bool | utf82wchar (const std::string &in, std::wstring *out) |
bool | wchar2utf8 (const std::wstring &in, std::string *out) |
static int | read_loop (int fd, char *buffer, int count) |
static char * | make_crypt_salt (const char *crypt_prefix, int crypt_rounds) |
bool | crypt_pass (string unencrypted, crypt_t use_crypt, string *encrypted) |
template<class In , class Out > | |
void | recode_errors (const In &in, const Out *out) |
template<class Out > | |
void | recode_errors (const std::string &in, const Out *out) |
template<class In , class Out > | |
bool | recode_all (iconv_t cd, const In &in, Out *out, const typename Out::value_type errorsign) |
Variables | |
static const char * | Y2RECURSIONLIMIT = "Y2RECURSIONLIMIT" |
ExecutionEnvironment | ee |
YaST2: Core system
Description: YaST2 SCR: Functions for shell like (un)quoting
Authors: Michal Filka mfilk a@su se.cz
$Id$
enum YaST::crypt_t |
bool YaST::crypt_pass | ( | string | unencrypted, |
crypt_t | use_crypt, | ||
string * | encrypted | ||
) |
References BLOWFISH, CRYPT, make_crypt_salt(), MD5, output(), SHA256, SHA512, and y2error.
Referenced by s_crypt(), s_cryptblowfish(), s_cryptmd5(), s_cryptsha256(), and s_cryptsha512().
|
static |
References CRYPT_GENSALT_OUTPUT_SIZE, output(), RANDOM_DEVICE, read_loop(), and y2error.
Referenced by crypt_pass().
|
static |
Referenced by make_crypt_salt().
bool YaST::recode | ( | iconv_t | cd, |
const std::string & | in, | ||
std::string * | out | ||
) |
References recode_all().
Referenced by utf82wchar(), and wchar2utf8().
bool YaST::recode | ( | iconv_t | cd, |
const std::string & | in, | ||
std::wstring * | out | ||
) |
References recode_all().
bool YaST::recode | ( | iconv_t | cd, |
const std::wstring & | in, | ||
std::string * | out | ||
) |
References recode_all().
bool YaST::recode | ( | iconv_t | cd, |
const std::wstring & | in, | ||
std::wstring * | out | ||
) |
References recode_all().
bool YaST::recode_all | ( | iconv_t | cd, |
const In & | in, | ||
Out * | out, | ||
const typename Out::value_type | errorsign | ||
) |
References recode_errors().
Referenced by recode().
void YaST::recode_errors | ( | const In & | in, |
const Out * | out | ||
) |
Referenced by recode_all().
void YaST::recode_errors | ( | const std::string & | in, |
const Out * | out | ||
) |
References ycpwarning.
bool YaST::utf82wchar | ( | const std::string & | in, |
std::wstring * | out | ||
) |
Convert a UTF-8 encoded string into a wide character string. Illegal input sequences are replaces by question marks.
Return false if no conversion was possible due to some general error. It does not return false if the input only contains illegal sequences.
The special feature of this function is that it does not depend on the current locale.
References recode(), and y2error.
Referenced by YCPStringRep::compare(), and YCPStringRep::wvalue().
bool YaST::wchar2utf8 | ( | const std::wstring & | in, |
std::string * | out | ||
) |
Convert a wide character string into a UTF-8 encoded string. Illegal input sequences are replaces by question marks.
Return false if no conversion was possible due to some general error. It does not return false if the input only contains illegal sequences.
The special feature of this function is that it does not depend on the current locale.
References recode(), and y2error.
Referenced by YCPStringRep::YCPStringRep().
ExecutionEnvironment YaST::ee |
Referenced by attach_parameter(), YEBuiltin::attachSymVariable(), b_and(), b_or(), Y2WFMComponent::CallFunction(), YBlock::evaluate(), YETriple::evaluate(), YSIf::evaluate(), YSInclude::evaluate(), YEFunction::evaluate(), YSFilename::evaluate(), YEFunctionPointer::evaluate(), Y2YCPFunction::evaluateCall(), YBlock::evaluateFrom(), Debugger::findSymbol(), Debugger::generateBacktrace(), i_check_binary_op(), i_check_compare_op(), main(), parsefile(), Debugger::processInput(), signal_handler(), ScriptingAgent::Sweep(), switch(), Y2FDebug(), Y2FError(), Y2FInternal(), Y2FMilestone(), Y2FSecurity(), Y2FWarning(), Y2Log(), YCPIntegerRep::YCPIntegerRep(), YEPropagate::YEPropagate(), and YaST::ExecutionEnvironment::~ExecutionEnvironment().
|
static |