yast2-core
Namespaces | Classes | Enumerations | Functions | Variables
YaST Namespace Reference

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
 

Detailed Description

YaST2: Core system

Description: YaST2 SCR: Functions for shell like (un)quoting

Authors: Michal Filka mfilk.nosp@m.a@su.nosp@m.se.cz

$Id$

Enumeration Type Documentation

Enumerator
CRYPT 
MD5 
BLOWFISH 
SHA256 
SHA512 

Function Documentation

bool YaST::crypt_pass ( string  unencrypted,
crypt_t  use_crypt,
string *  encrypted 
)
static char* YaST::make_crypt_salt ( const char *  crypt_prefix,
int  crypt_rounds 
)
static
static int YaST::read_loop ( int  fd,
char *  buffer,
int  count 
)
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().

template<class In , class Out >
bool YaST::recode_all ( iconv_t  cd,
const In &  in,
Out *  out,
const typename Out::value_type  errorsign 
)

References recode_errors().

Referenced by recode().

template<class In , class Out >
void YaST::recode_errors ( const In &  in,
const Out *  out 
)

Referenced by recode_all().

template<class Out >
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().

Variable Documentation

const char* YaST::Y2RECURSIONLIMIT = "Y2RECURSIONLIMIT"
static

Generated on a sunny day for yast2-core by doxygen 1.8.11