|
Classes |
class | Attribute |
| Class to store the string attributes. More...
|
struct | KeyEvent |
| The class to store a keyboard event. More...
|
class | Exception |
| A base class of all other exception classes. More...
|
class | IConvert |
| A class to convert strings between UCS-4 and local encodings. More...
|
class | LookupTable |
| The base class of lookup table. More...
|
class | CommonLookupTable |
| A common lookup table class. More...
|
class | ModuleError |
class | Module |
class | ReferencedObject |
| Reference counted base class. More...
|
class | Pointer |
| Smart pointer template class. More...
|
class | SocketError |
class | SocketAddress |
class | Socket |
class | SocketServer |
class | SocketClient |
class | SocketTransactionError |
class | SocketTransaction |
class | ReferencedObject |
| Reference counted base class. More...
|
class | Pointer |
| Smart pointer template class. More...
|
Equality operators |
template<typename T1, typename T2> bool | scim::operator== (const Pointer< T1 > &t1, const Pointer< T2 > &t2) |
template<typename T1, typename T2> bool | scim::operator!= (const Pointer< T1 > &t1, const Pointer< T2 > &t2) |
C++-style casting functions |
template<typename To, typename From> Pointer< To > | scim::cast_const (const Pointer< From > &from) |
template<typename To, typename From> Pointer< To > | scim::cast_dynamic (const Pointer< From > &from) |
template<typename To, typename From> Pointer< To > | scim::cast_static (const Pointer< From > &from) |
Defines |
#define | SCIM_MAX_BUFSIZE 4096 |
#define | SCIM_LOOKUP_TABLE_MAX_PAGESIZE 16 |
#define | SCIM_PATH_DELIM_STRING "/" |
#define | SCIM_PATH_DELIM '/' |
#define | RET_ILSEQ 0 |
#define | RET_TOOFEW(n) (-1-(n)) |
#define | RET_TOOSMALL -1 |
#define | BAD_WCHAR ((ucs4_t) 0xfffd) |
#define | BAD_CHAR '?' |
Typedefs |
typedef std::vector< Attribute > | scim::AttributeList |
| The container to store a set of Attribute objects.
|
typedef std::vector< KeyEvent > | scim::KeyEventList |
| The container to store a set of KeyEvent objects.
|
typedef Slot2< void, SocketServer *,
const Socket & > | scim::SocketServerSlotSocket |
typedef Signal2< void, SocketServer *,
const Socket & > | scim::SocketServerSignalSocket |
Enumerations |
enum | scim::AttributeType { scim::SCIM_ATTR_NONE,
scim::SCIM_ATTR_UNDERLINE,
scim::SCIM_ATTR_HIGHLIGHT,
scim::SCIM_ATTR_REVERSE
} |
| Enum values of the valid attributes. More...
|
enum | scim::KeyMask {
scim::SCIM_KEY_NullMask = 0,
scim::SCIM_KEY_ShiftMask = (1<<0),
scim::SCIM_KEY_LockMask = (1<<1),
scim::SCIM_KEY_CapsLockMask = (1<<1),
scim::SCIM_KEY_ControlMask = (1<<2),
scim::SCIM_KEY_AltMask = (1<<3),
scim::SCIM_KEY_Mod1Mask = (1<<3),
scim::SCIM_KEY_Mod2Mask = (1<<4),
scim::SCIM_KEY_NumLockMask = (1<<4),
scim::SCIM_KEY_Mod3Mask = (1<<5),
scim::SCIM_KEY_Mod4Mask = (1<<6),
scim::SCIM_KEY_Mod5Mask = (1<<7),
scim::SCIM_KEY_ScrollLockMask = (1<<7),
scim::SCIM_KEY_ReleaseMask = (1<<30)
} |
| Enum values of all valid key masks. More...
|
enum | scim::KeyCode {
scim::SCIM_KEY_NullKey = 0,
scim::SCIM_KEY_Shift_L = 0xFFE1,
scim::SCIM_KEY_Shift_R = 0xFFE2,
scim::SCIM_KEY_Control_L = 0xFFE3,
scim::SCIM_KEY_Control_R = 0xFFE4,
scim::SCIM_KEY_Caps_Lock = 0xFFE5,
scim::SCIM_KEY_Shift_Lock = 0xFFE6,
scim::SCIM_KEY_Meta_L = 0xFFE7,
scim::SCIM_KEY_Meta_R = 0xFFE8,
scim::SCIM_KEY_Alt_L = 0xFFE9,
scim::SCIM_KEY_Alt_R = 0xFFEA,
scim::SCIM_KEY_Super_L = 0xFFEB,
scim::SCIM_KEY_Super_R = 0xFFEC,
scim::SCIM_KEY_Hyper_L = 0xFFED,
scim::SCIM_KEY_Hyper_R = 0xFFEE,
scim::SCIM_KEY_BackSpace = 0xFF08,
scim::SCIM_KEY_Tab = 0xFF09,
scim::SCIM_KEY_Linefeed = 0xFF0A,
scim::SCIM_KEY_Clear = 0xFF0B,
scim::SCIM_KEY_Return = 0xFF0D,
scim::SCIM_KEY_Pause = 0xFF13,
scim::SCIM_KEY_Scroll_Lock = 0xFF14,
scim::SCIM_KEY_Sys_Req = 0xFF15,
scim::SCIM_KEY_Escape = 0xFF1B,
scim::SCIM_KEY_Delete = 0xFFFF,
scim::SCIM_KEY_Multi_key = 0xFF20,
scim::SCIM_KEY_Codeinput = 0xFF37,
scim::SCIM_KEY_SingleCandidate = 0xFF3C,
scim::SCIM_KEY_MultipleCandidate = 0xFF3D,
scim::SCIM_KEY_PreviousCandidate = 0xFF3E,
scim::SCIM_KEY_Kanji = 0xFF21,
scim::SCIM_KEY_Muhenkan = 0xFF22,
scim::SCIM_KEY_Henkan_Mode = 0xFF23,
scim::SCIM_KEY_Henkan = 0xFF23,
scim::SCIM_KEY_Romaji = 0xFF24,
scim::SCIM_KEY_Hiragana = 0xFF25,
scim::SCIM_KEY_Katakana = 0xFF26,
scim::SCIM_KEY_Hiragana_Katakana = 0xFF27,
scim::SCIM_KEY_Zenkaku = 0xFF28,
scim::SCIM_KEY_Hankaku = 0xFF29,
scim::SCIM_KEY_Zenkaku_Hankaku = 0xFF2A,
scim::SCIM_KEY_Touroku = 0xFF2B,
scim::SCIM_KEY_Massyo = 0xFF2C,
scim::SCIM_KEY_Kana_Lock = 0xFF2D,
scim::SCIM_KEY_Kana_Shift = 0xFF2E,
scim::SCIM_KEY_Eisu_Shift = 0xFF2F,
scim::SCIM_KEY_Eisu_toggle = 0xFF30,
scim::SCIM_KEY_Kanji_Bangou = 0xFF37,
scim::SCIM_KEY_Zen_Koho = 0xFF3D,
scim::SCIM_KEY_Mae_Koho = 0xFF3E,
scim::SCIM_KEY_Home = 0xFF50,
scim::SCIM_KEY_Left = 0xFF51,
scim::SCIM_KEY_Up = 0xFF52,
scim::SCIM_KEY_Right = 0xFF53,
scim::SCIM_KEY_Down = 0xFF54,
scim::SCIM_KEY_Prior = 0xFF55,
scim::SCIM_KEY_Page_Up = 0xFF55,
scim::SCIM_KEY_Next = 0xFF56,
scim::SCIM_KEY_Page_Down = 0xFF56,
scim::SCIM_KEY_End = 0xFF57,
scim::SCIM_KEY_Begin = 0xFF58,
scim::SCIM_KEY_Select = 0xFF60,
scim::SCIM_KEY_Print = 0xFF61,
scim::SCIM_KEY_Execute = 0xFF62,
scim::SCIM_KEY_Insert = 0xFF63,
scim::SCIM_KEY_Undo = 0xFF65,
scim::SCIM_KEY_Redo = 0xFF66,
scim::SCIM_KEY_Menu = 0xFF67,
scim::SCIM_KEY_Find = 0xFF68,
scim::SCIM_KEY_Cancel = 0xFF69,
scim::SCIM_KEY_Help = 0xFF6A,
scim::SCIM_KEY_Break = 0xFF6B,
scim::SCIM_KEY_Mode_switch = 0xFF7E,
scim::SCIM_KEY_Num_Lock = 0xFF7F,
scim::SCIM_KEY_KP_Space = 0xFF80,
scim::SCIM_KEY_KP_Tab = 0xFF89,
scim::SCIM_KEY_KP_Enter = 0xFF8D,
scim::SCIM_KEY_KP_F1 = 0xFF91,
scim::SCIM_KEY_KP_F2 = 0xFF92,
scim::SCIM_KEY_KP_F3 = 0xFF93,
scim::SCIM_KEY_KP_F4 = 0xFF94,
scim::SCIM_KEY_KP_Home = 0xFF95,
scim::SCIM_KEY_KP_Left = 0xFF96,
scim::SCIM_KEY_KP_Up = 0xFF97,
scim::SCIM_KEY_KP_Right = 0xFF98,
scim::SCIM_KEY_KP_Down = 0xFF99,
scim::SCIM_KEY_KP_Prior = 0xFF9A,
scim::SCIM_KEY_KP_Page_Up = 0xFF9A,
scim::SCIM_KEY_KP_Next = 0xFF9B,
scim::SCIM_KEY_KP_Page_Down = 0xFF9B,
scim::SCIM_KEY_KP_End = 0xFF9C,
scim::SCIM_KEY_KP_Begin = 0xFF9D,
scim::SCIM_KEY_KP_Insert = 0xFF9E,
scim::SCIM_KEY_KP_Delete = 0xFF9F,
scim::SCIM_KEY_KP_Equal = 0xFFBD,
scim::SCIM_KEY_KP_Multiply = 0xFFAA,
scim::SCIM_KEY_KP_Add = 0xFFAB,
scim::SCIM_KEY_KP_Separator = 0xFFAC,
scim::SCIM_KEY_KP_Subtract = 0xFFAD,
scim::SCIM_KEY_KP_Decimal = 0xFFAE,
scim::SCIM_KEY_KP_Divide = 0xFFAF,
scim::SCIM_KEY_KP_0 = 0xFFB0,
scim::SCIM_KEY_KP_1 = 0xFFB1,
scim::SCIM_KEY_KP_2 = 0xFFB2,
scim::SCIM_KEY_KP_3 = 0xFFB3,
scim::SCIM_KEY_KP_4 = 0xFFB4,
scim::SCIM_KEY_KP_5 = 0xFFB5,
scim::SCIM_KEY_KP_6 = 0xFFB6,
scim::SCIM_KEY_KP_7 = 0xFFB7,
scim::SCIM_KEY_KP_8 = 0xFFB8,
scim::SCIM_KEY_KP_9 = 0xFFB9,
scim::SCIM_KEY_F1 = 0xFFBE,
scim::SCIM_KEY_F2 = 0xFFBF,
scim::SCIM_KEY_F3 = 0xFFC0,
scim::SCIM_KEY_F4 = 0xFFC1,
scim::SCIM_KEY_F5 = 0xFFC2,
scim::SCIM_KEY_F6 = 0xFFC3,
scim::SCIM_KEY_F7 = 0xFFC4,
scim::SCIM_KEY_F8 = 0xFFC5,
scim::SCIM_KEY_F9 = 0xFFC6,
scim::SCIM_KEY_F10 = 0xFFC7,
scim::SCIM_KEY_F11 = 0xFFC8,
scim::SCIM_KEY_F12 = 0xFFC9,
scim::SCIM_KEY_space = 0x020,
scim::SCIM_KEY_exclam = 0x021,
scim::SCIM_KEY_quotedbl = 0x022,
scim::SCIM_KEY_numbersign = 0x023,
scim::SCIM_KEY_dollar = 0x024,
scim::SCIM_KEY_percent = 0x025,
scim::SCIM_KEY_ampersand = 0x026,
scim::SCIM_KEY_apostrophe = 0x027,
scim::SCIM_KEY_quoteright = 0x027,
scim::SCIM_KEY_parenleft = 0x028,
scim::SCIM_KEY_parenright = 0x029,
scim::SCIM_KEY_asterisk = 0x02a,
scim::SCIM_KEY_plus = 0x02b,
scim::SCIM_KEY_comma = 0x02c,
scim::SCIM_KEY_minus = 0x02d,
scim::SCIM_KEY_period = 0x02e,
scim::SCIM_KEY_slash = 0x02f,
scim::SCIM_KEY_0 = 0x030,
scim::SCIM_KEY_1 = 0x031,
scim::SCIM_KEY_2 = 0x032,
scim::SCIM_KEY_3 = 0x033,
scim::SCIM_KEY_4 = 0x034,
scim::SCIM_KEY_5 = 0x035,
scim::SCIM_KEY_6 = 0x036,
scim::SCIM_KEY_7 = 0x037,
scim::SCIM_KEY_8 = 0x038,
scim::SCIM_KEY_9 = 0x039,
scim::SCIM_KEY_colon = 0x03a,
scim::SCIM_KEY_semicolon = 0x03b,
scim::SCIM_KEY_less = 0x03c,
scim::SCIM_KEY_equal = 0x03d,
scim::SCIM_KEY_greater = 0x03e,
scim::SCIM_KEY_question = 0x03f,
scim::SCIM_KEY_at = 0x040,
scim::SCIM_KEY_A = 0x041,
scim::SCIM_KEY_B = 0x042,
scim::SCIM_KEY_C = 0x043,
scim::SCIM_KEY_D = 0x044,
scim::SCIM_KEY_E = 0x045,
scim::SCIM_KEY_F = 0x046,
scim::SCIM_KEY_G = 0x047,
scim::SCIM_KEY_H = 0x048,
scim::SCIM_KEY_I = 0x049,
scim::SCIM_KEY_J = 0x04a,
scim::SCIM_KEY_K = 0x04b,
scim::SCIM_KEY_L = 0x04c,
scim::SCIM_KEY_M = 0x04d,
scim::SCIM_KEY_N = 0x04e,
scim::SCIM_KEY_O = 0x04f,
scim::SCIM_KEY_P = 0x050,
scim::SCIM_KEY_Q = 0x051,
scim::SCIM_KEY_R = 0x052,
scim::SCIM_KEY_S = 0x053,
scim::SCIM_KEY_T = 0x054,
scim::SCIM_KEY_U = 0x055,
scim::SCIM_KEY_V = 0x056,
scim::SCIM_KEY_W = 0x057,
scim::SCIM_KEY_X = 0x058,
scim::SCIM_KEY_Y = 0x059,
scim::SCIM_KEY_Z = 0x05a,
scim::SCIM_KEY_bracketleft = 0x05b,
scim::SCIM_KEY_backslash = 0x05c,
scim::SCIM_KEY_bracketright = 0x05d,
scim::SCIM_KEY_asciicircum = 0x05e,
scim::SCIM_KEY_underscore = 0x05f,
scim::SCIM_KEY_grave = 0x060,
scim::SCIM_KEY_a = 0x061,
scim::SCIM_KEY_b = 0x062,
scim::SCIM_KEY_c = 0x063,
scim::SCIM_KEY_d = 0x064,
scim::SCIM_KEY_e = 0x065,
scim::SCIM_KEY_f = 0x066,
scim::SCIM_KEY_g = 0x067,
scim::SCIM_KEY_h = 0x068,
scim::SCIM_KEY_i = 0x069,
scim::SCIM_KEY_j = 0x06a,
scim::SCIM_KEY_k = 0x06b,
scim::SCIM_KEY_l = 0x06c,
scim::SCIM_KEY_m = 0x06d,
scim::SCIM_KEY_n = 0x06e,
scim::SCIM_KEY_o = 0x06f,
scim::SCIM_KEY_p = 0x070,
scim::SCIM_KEY_q = 0x071,
scim::SCIM_KEY_r = 0x072,
scim::SCIM_KEY_s = 0x073,
scim::SCIM_KEY_t = 0x074,
scim::SCIM_KEY_u = 0x075,
scim::SCIM_KEY_v = 0x076,
scim::SCIM_KEY_w = 0x077,
scim::SCIM_KEY_x = 0x078,
scim::SCIM_KEY_y = 0x079,
scim::SCIM_KEY_z = 0x07a,
scim::SCIM_KEY_braceleft = 0x07b,
scim::SCIM_KEY_bar = 0x07c,
scim::SCIM_KEY_braceright = 0x07d,
scim::SCIM_KEY_asciitilde = 0x07e
} |
| Enum values of all valid key codes. More...
|
enum | scim::SocketFamily { scim::SCIM_SOCKET_UNKNOWN,
scim::SCIM_SOCKET_LOCAL,
scim::SCIM_SOCKET_INET
} |
enum | scim::SocketTransactionDataType {
scim::SCIM_TRANS_DATA_UNKNOWN,
scim::SCIM_TRANS_DATA_COMMAND,
scim::SCIM_TRANS_DATA_RAW,
scim::SCIM_TRANS_DATA_UINT32,
scim::SCIM_TRANS_DATA_STRING,
scim::SCIM_TRANS_DATA_WSTRING,
scim::SCIM_TRANS_DATA_KEYEVENT,
scim::SCIM_TRANS_DATA_ATTRLIST,
scim::SCIM_TRANS_DATA_LOOKUP_TABLE,
scim::SCIM_TRANS_DATA_VECTOR_UINT32,
scim::SCIM_TRANS_DATA_VECTOR_STRING,
scim::SCIM_TRANS_DATA_VECTOR_WSTRING
} |
Functions |
bool | scim::scim_key_to_string (String &str, const KeyEvent &key) |
| Convert a key event to a string.
|
bool | scim::scim_string_to_key (KeyEvent &key, const String &str) |
| Convert a string to a KeyEvent.
|
bool | scim::scim_key_list_to_string (String &str, const KeyEventList &keylist) |
| Convert a set of KeyEvents to a string.
|
bool | scim::scim_string_to_key_list (KeyEventList &keylist, const String &str) |
| Covnert a string to a set of KeyEvents.
|
int | scim::scim_get_module_list (std::vector< String > &mod_list, const String &type="") |
int | scim::utf8_mbtowc (ucs4_t *pwc, const unsigned char *src, int src_len) |
| Convert an utf8 char sequence to ucs4.
|
int | scim::utf8_wctomb (unsigned char *dest, ucs4_t wc, int dest_size) |
| Convert an ucs4 code to utf8 char sequence.
|
WideString | scim::utf8_mbstowcs (const String &str) |
| Convert an utf8 string to an ucs4 string.
|
WideString | scim::utf8_mbstowcs (const char *str, int len=-1) |
| Convert an utf8 string to an ucs4 string.
|
String | scim::utf8_wcstombs (const WideString &wstr) |
| Convert an ucs4 string to an utf8 string.
|
String | scim::utf8_wcstombs (const ucs4_t *wstr, int len=-1) |
| Convert an ucs4 string to an utf8 string.
|
ucs4_t | scim::utf8_read_wchar (std::istream &is) |
| Read a wide char from istream.
|
std::ostream & | scim::utf8_write_wchar (std::ostream &os, ucs4_t wc) |
| Write a wide char to ostream.
|
WideString | scim::utf8_read_wstring (std::istream &is, ucs4_t delim=(ucs4_t) '\n', bool rm_delim=true) |
| Read a wide string from istream.
|
std::ostream & | scim::utf8_write_wstring (std::ostream &os, const WideString &wstr) |
| Write a wide string to ostream.
|
void | scim::scim_uint32tobytes (unsigned char *bytes, uint32 n) |
| Convert an uint32 variable into a sequence of bytes.
|
uint32 | scim::scim_bytestouint32 (const unsigned char *bytes) |
| Convert a sequence of bytes into an uint32 value.
|
void | scim::scim_uint16tobytes (unsigned char *bytes, uint16 n) |
| Convert an uint16 variable into a sequence of bytes.
|
uint16 | scim::scim_bytestouint16 (const unsigned char *bytes) |
| Convert a sequence of bytes into an uint16 value.
|
String | scim::scim_validate_locale (const String &locale) |
| Test if the locale is valid, and return the good locale name.
|
String | scim::scim_get_locale_encoding (const String &locale) |
| Get the encoding for a locale.
|
String | scim::scim_get_current_locale () |
| Get current system locale.
|
int | scim::scim_get_locale_maxlen (const String &locale) |
| Get the max length of the multibyte char of a locale.
|
int | scim::scim_split_string_list (std::vector< String > &vec, const String &str, char delim= ',') |
| Split string list into a string vector according to the delim char.
|
String | scim::scim_combine_string_list (const std::vector< String > &vec, char delim= ',') |
| Combine a string vector into one string list, separated by char delim.
|
bool | scim::scim_is_little_endian () |
| Get machine endian type.
|
bool | scim::scim_if_wchar_ucs4_equal () |
| Test if wchar_t is using UCS4 encoding.
|
ucs4_t | scim::scim_wchar_to_full_width (ucs4_t code) |
| Convert a half width unicode char to its full width counterpart.
|
ucs4_t | scim::scim_wchar_to_half_width (ucs4_t code) |
| Convert a full width unicode char to its half width counterpart.
|
String | scim::scim_get_home_dir () |
| Get the home dir of current user.
|
String | scim::scim_get_user_name () |
| Get the name of current user.
|
size_t | scim::scim_load_file (const String &filename, char **bufptr) |
| Load a file into memory.
|
bool | scim::scim_make_dir (const String &dir) |
| Make a directory.
|
Variables |
const int | scim::SCIM_TRANS_CMD_UNKNOWN |