Scroll to navigation

XrmGetFileDatabase(3X11) XLIB FUNCTIONS XrmGetFileDatabase(3X11)

̾??

XrmGetFileDatabase, XrmPutFileDatabase, XrmGetStringDatabase, XrmLocaleOfDatabase, XrmGetDatabase, XrmSetDatabase, XrmDestroyDatabase - ?꥽?????ǡ????١????γ?Ǽ?Ȱ????Ф????Ԥ?

????

XrmDatabase XrmGetFileDatabase(filename)
char *filename;

void XrmPutFileDatabase(database, stored_db)
XrmDatabase database;
char *stored_db;

XrmDatabase XrmGetStringDatabase(data)
char *data;

char *XrmLocaleOfDatabase(database)
XrmDatabase database;

XrmDatabase XrmGetDatabase(display)
Display *display;

void XrmSetDatabase(display, database)
Display *display;
XrmDatabase database;

void XrmDestroyDatabase(database)
XrmDatabase database;

??????

?꥽?????ǡ????١????Υե?????̾?????ꤹ?롣
???Ѥ????ǡ????١????????ꤹ?롣
?ǡ????١???????Ǽ???????ե?????̾?????ꤹ?롣
ʸ???????Ȥäƥǡ????١????????Ƥ????ꤹ?롣
?꥽?????ǡ????١????????ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣

????

?ؿ? XrmGetFileDatabase ?ϻ??ꤵ?줿?ե??????򥪡??ץ󤷡????????꥽?????ǡ????١????????????? ???ꤵ?줿?ե????뤫???ɤ߹????????ͤ??Ȥäƥǡ????١??????????ɤ??롣 ???ꤵ?줿?ե??????ϡ?ͭ???ʥ꥽?????Է???(15.1 ???򻲾?)?Υ????ȥ꡼???? ???????ʤ????Фʤ??ʤ???ʸˡŪ?˸????Τ????ե????????ɤ??????̤Ȥ????? ???????ǡ????١????ϼ?????¸?Ǥ??롣 ???Υե??????ϸ??ߤΥ?????????Ÿ?????졢?ǡ????١????ϸ??ߤΥ????????? ?????????롣 ???ꤵ?줿?ե??????򥪡??ץ??Ǥ??ʤ????硢 XrmGetFileDatabase ?? NULL ???֤???

?ؿ? XrmPutFileDatabase ?ϡ????ꤵ?줿?ǡ????١????Υ??ԡ??????ꤵ?줿?ե??????˳?Ǽ???롣 ?ƥ????Ȥ?ͭ???ʥ꥽?????Է???(15.1 ?Ỳ??)?Υ????ȥ꡼?????Ȥ??? ?ե??????˽񤫤??롣 ?ե??????ϥǡ????١????Υ????????ǽ񤫤??롣 ???󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ??꥽????̾ ?????ĥ????ȥ꡼?䡢?ǡ????١????Υ????????Υ??󥳡??ǥ??󥰤Ǥʤ??ͤ? ???ĥ????ȥ꡼?ϡ???????¸????ˡ?ǽ??Ϥ????롣 ?????ȥ꡼???񤫤????????ϼ?????¸?Ǥ??롣 ``String'' ?ʳ???ɽ?????Υ????ȥ꡼??̵?뤵???롣

?ؿ? XrmGetStringDatabase ?ϡ????????ǡ????١?????????????NULL ?ǽ????????ꤵ?줿ʸ?????ǻ??ꤵ ?줿?꥽????????Ǽ???롣 XrmGetStringDatabase ?? XrmGetFileDatabase ?Ȼ??Ƥ??뤬???ե????뤫???ξ????ǤϤʤ?ʸ???󤫤??ξ??????ɤ??????ۤ? ?롣 ʸ?????ϡ?ͭ???ʥ꥽?????Է???(15.1 ?Ỳ??)?Υ????ȥ꡼?????????ʤ??Ƥ? ?ʤ??ʤ????ޤ???????ʸ?????? NULL ?ǽ????롣 ʸˡŪ?˸????Τ???ʸ???????Ѥ??????̤Υǡ????١????ϼ?????¸?Ǥ??롣 ʸ?????ϸ??ߤΥ?????????Ÿ?????졢?ǡ????١????ϸ??ߤΥ??????????????? ???롣

?ǡ????١????? NULL ?ʤ??С? XrmDestroyDatabase ?Ϥ????????????롣

?ؿ? XrmLocaleOfDatabase ?ϡ????ꤷ???ǡ????١????˴?Ϣ?Ť????줿??????????̾?????֤????????? NULL ?ǽ?????ʸ?????Ǥ??롣 ?֤??줿????????̾ʸ?????? Xlib ????ͭ???Ƥ????Τǡ????饤?????Ȥ??ѹ? ???????򤷤ƤϤʤ??ʤ??? ?ǡ????١??????˴????????ޤǡ?Xlib ?Ϥ???ʸ?????????????ƤϤʤ??ʤ??? ʸ?????ϲ??????????ޤ? Xlib ?ˤ??ä??ѹ??????뤳?ȤϤʤ???

?ؿ? XrmGetDatabase ?ϡ????ꤷ???ǥ????ץ쥤?˴?Ϣ?Ť????줿?ǡ????١??????֤??? ?ǡ????١??????ޤ????ꤵ???Ƥ??ʤ??????ϡ????δؿ??? NULL ???֤???

?ؿ? XrmSetDatabase ?ϡ????ꤷ???ǡ????١???(???뤤?? NULL)?????ꤷ???ǥ????ץ쥤?˴?Ϣ?? ???롣 ?????ˤ??Υǥ????ץ쥤?˴?Ϣ?Ť????줿?ǡ????١?????(?⤷???äƤ?)?˴? ?????ʤ??? ???饤?????Ȥ??ġ??륭?åȤˤȤäơ????δؿ??ϰ????????????ǡ????١??? ???ݻ????뤿???????????Ȼפ????롣

?ե??????ν???

?꥽?????ե??????ν񼰤ϡ????Ԥ??ե??????????ǽ??????꥽?????Ԥ????Ǥ? ?롣 ???̤Υ꥽?????ˤĤ??Ƥ?ʸˡ?ϰʲ????̤??Ǥ???:

ResourceLine	=	Comment | IncludeFile | ResourceSpec | <????>
Comment	=	"!" {<NULL ʸ???Ȳ???ʸ???ʳ???Ǥ?դ?ʸ??>}
IncludeFile	=	"#" WhiteSpace "include" WhiteSpace FileName WhiteSpace
FileName	=	<OS ?ˤȤä?ͭ???ʥե?????̾>
ResourceSpec	=	WhiteSpace ResourceName WhiteSpace ":" WhiteSpace Value
ResourceName	=	[Binding] {Component Binding} ComponentName
Binding	=	"." | "*"
WhiteSpace	=	{<????ʸ??> | <??ʿ????>}
Component	=	"?" | ComponentName
ComponentName	=	NameChar {NameChar}
NameChar	=	"a"-"z" | "A"-"Z" | "0"-"9" | "_" | "-"
Value	=	{<NULL ʸ???Ȳ???ʸ???ʳ???Ǥ?դ?ʸ??>}


??ľ?С?(|)?Ƕ??ڤ??줿???Ǥϡ??ɤ줫 1 ?Ĥ????֤??Ȥ򼨤??? ??????({...})?ϡ????̤dz????줿???Ǥ? 0 ???ʾ??Τ????֤??򼨤??? ??????([...])?ϡ????̤dz????줿???Ǥ??ʤ??Ƥ??褤???Ȥ򼨤??? ????????("...")?ϡ????ƥ???ʸ???????????Ѥ??????롣

IncludeFile ?Ԥϡ????ꤷ???ե??????????ƤǤ??ιԤ??֤??????뤳?ȤȲ??? ?????롣 ``include'' ?θ??Ͼ?ʸ???Ǥʤ????Фʤ??ʤ??? ?ե?????̾?ϡ????ιԤ??????줿?ե??????Υǥ??쥯?ȥ????Ф???????Ū?˲? ?ᤵ????(?㤨?С??ե?????̾???ǥ??쥯?ȥ????ޤޤʤ??????????Хǥ??쥯 ?ȥ????????ޤ?????)??

ResourceName ??2?İʾ??? Binding ??Ϣ³???ƴޤ????硢???Υ??????󥹤? ``.'' ?????ޤޤʤ??ʤ??С????Υ??????󥹤? 1 ?Ĥ?``.'' ʸ?????֤??? ???????롣 ?????Ǥʤ????硢???Υ??????󥹤? 1 ?Ĥ? ``*'' ʸ?????֤??????????롣

?꥽?????ǡ????١????ϡ?Ϳ?????줿 ResourceName ???Ф??? 1 ?Ĥ???¿???? ?????ȥ꡼???ޤळ?ȤϷ褷?Ƥʤ????꥽?????ե????뤬Ʊ?? ResourceName ?ˤĤ???ʣ???ιԤ??ޤ????硢?ե????????Ǹ??˸????줿?????Ѥ??????롣

ResourceSpec ?Ǥϡ?̾???䥳?????θ??ζ???ʸ????????̵?뤵???롣 Value ???????ǻϤ??뤳?Ȥ??Ǥ????褦?ˡ?2 ʸ???????ʤ륷???????? ``\space''(???ڡ????????˥Хå??????å??夬????)?ϡ?1 ?Ĥ? ?????Ȥ?????ǧ?????졢``\tab''(??ʿ???֤????˥Хå??????å??? ??????)?ϡ?1 ?Ĥο?ʿ????ʸ???Ȥ???ǧ???????롣 ?????˲???ʸ?????ޤ? Value ???Ȥ????褦?ˡ?2 ʸ???????ʤ륷???????? ``\n'' ?? 1 ?Ĥβ???ʸ???Ȥ???ǧ???????롣 ?ƥ????ȥե?????????ʣ???Ԥˤޤ????? Value ???Ȥ????褦?ˡ?2 ʸ???????? ?륷???????? ``\newline'' (???Ԥ????˥Хå??????å???)?ϡ? Valuse ???????????????롣 Ǥ?դ?ʸ???????ɤ??Ȥ????褦?ˡ?4 ʸ???????ʤ륷???????? ``\nnn'' ?ϡ????????󥹤ǻ??ꤵ?줿 8 ?ʿ????ͤ??ޤ? 1 ?Ĥ? ?Х??ȥǡ??????֤??????????롣?????ǡ????줾???? n ???ϰϤ? ``0''-``7'' ?Ǥ????????Ǥ??롣 ?Ǹ??ˡ?2 ʸ???????ʤ륷???????? ``\\'' ?ϡ?1 ?ĤΥХå??????å????? ?֤??????????롣

??Ϣ????

XrmGetResource(3X11), XrmInitialize(3X11), XrmPutResource(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11