\doxysection{プロパティリスト} \label{group__m17nPlist}\index{プロパティリスト@{プロパティリスト}} プロパティリストオブジェクトとそれに関する API. プロパティリスト 連携図 \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=229pt]{group__m17nPlist} \end{center} \end{figure} \doxysubsection*{関数} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga687bcaacf8110e0f60a12c9ebc288b4c}{mplist\+\_\+deserialize}} (\mbox{\hyperlink{structMText}{MText}} $\ast$mt) \begin{DoxyCompactList}\small\item\em M-\/text をデシリアライズしてプロパティリストを作る. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga86cff73047b6462271d086f7365782ff}{mplist}} (void) \begin{DoxyCompactList}\small\item\em プロパティリストオブジェクトを作る. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga03cb2253e439ec15d0bbbac6f86f0e37}{mplist\+\_\+copy}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリストをコピーする. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}{mplist\+\_\+put}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key, void $\ast$val) \begin{DoxyCompactList}\small\item\em プロパティリスト中のプロパティの値を設定する. \end{DoxyCompactList}\item void $\ast$ \mbox{\hyperlink{group__m17nPlist_ga2a2f833fccd7b699eb31e5de62cea41b}{mplist\+\_\+get}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key) \begin{DoxyCompactList}\small\item\em プロパティリスト中のプロパティの値を得る. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_gab1654476aef37dbea02c56476353ab8e}{mplist\+\_\+put\+\_\+func}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key, \mbox{\hyperlink{group__m17nCore_ga19c0932d1f3f2067bd1d7175cc26932b}{M17\+NFunc}} func) \begin{DoxyCompactList}\small\item\em プロパティリスト中のプロパティに関数ポインタである値を設定する. \end{DoxyCompactList}\item \mbox{\hyperlink{group__m17nCore_ga19c0932d1f3f2067bd1d7175cc26932b}{M17\+NFunc}} \mbox{\hyperlink{group__m17nPlist_ga215ddb45ee970edbee7ff2e2e6bc1e8d}{mplist\+\_\+get\+\_\+func}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key) \begin{DoxyCompactList}\small\item\em プロパティリストからプロパティの関数ポインタである値を得る. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_gaf5d13d2df5af9260356aa415e3965def}{mplist\+\_\+add}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key, void $\ast$val) \begin{DoxyCompactList}\small\item\em プロパティリスト末尾にプロパティを追加する. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga20e766b438f42a13bdee803908e6096d}{mplist\+\_\+push}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key, void $\ast$val) \begin{DoxyCompactList}\small\item\em プロパティリストの先頭にプロパティを挿入する. \end{DoxyCompactList}\item void $\ast$ \mbox{\hyperlink{group__m17nPlist_gae05459bfe72a34eefe5a04b4aa75d20a}{mplist\+\_\+pop}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリストの先頭からプロパティを削除する. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga73caf1b7a0082184ff15e1b3e2da8969}{mplist\+\_\+find\+\_\+by\+\_\+key}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key) \begin{DoxyCompactList}\small\item\em プロパティリスト中から指定のキーを持つプロパティを探す. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_gaeb782bf76f84a8620331c8de70d43ba7}{mplist\+\_\+find\+\_\+by\+\_\+value}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, void $\ast$val) \begin{DoxyCompactList}\small\item\em プロパティリスト中から指定の値を持つプロパティを探す. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_ga5c7598c133f6a177a2ad5781fc712f6e}{mplist\+\_\+next}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリストの次の部分リストを返す. \end{DoxyCompactList}\item \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ \mbox{\hyperlink{group__m17nPlist_gab343caba712200f5324c12f668f7e6da}{mplist\+\_\+set}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist, MSymbol key, void $\ast$val) \begin{DoxyCompactList}\small\item\em プロパティリストの最初のプロパティを設定する. \end{DoxyCompactList}\item int \mbox{\hyperlink{group__m17nPlist_ga334646ff9553354f4b041947f000764d}{mplist\+\_\+length}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリストの長さを返す. \end{DoxyCompactList}\item MSymbol \mbox{\hyperlink{group__m17nPlist_ga79d757b26382412e7ea69e914bc06a07}{mplist\+\_\+key}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリスト中の最初のプロパティのキーを返す. \end{DoxyCompactList}\item void $\ast$ \mbox{\hyperlink{group__m17nPlist_ga855f3010b216bcf5f0914553fc034295}{mplist\+\_\+value}} (\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$plist) \begin{DoxyCompactList}\small\item\em プロパティリスト中の最初のプロパティの値を返す. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{変数} \begin{DoxyCompactItemize} \item MSymbol \mbox{\hyperlink{group__m17nPlist_ga0ce08eb57aa339db4d4745e75e80fdd8}{Minteger}} \begin{DoxyCompactList}\small\item\em \char`\"{}integer\char`\"{} を名前として持つシンボル. \end{DoxyCompactList}\item MSymbol \mbox{\hyperlink{group__m17nPlist_ga933000e154873f9bfcaa56d976bd259b}{Mplist}} \begin{DoxyCompactList}\small\item\em \char`\"{}plist\char`\"{} を名前として持つシンボル. \end{DoxyCompactList}\item MSymbol \mbox{\hyperlink{group__m17nPlist_ga1a22859374071a0ca66f12452afee8bd}{Mtext}} \begin{DoxyCompactList}\small\item\em \char`\"{}mtext\char`\"{} を名前として持つシンボル. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{詳解} プロパティリストオブジェクトとそれに関する API. {\itshape プロパティリスト} (または {\itshape plist}) は 0 個以上のプロパティのリストである。プロパティは {\itshape キー} と {\itshape 値} からなる。キーはシンボルであり、値は {\ttfamily (void $\ast$)} にキャストできるものならば何でも良い。 あるプロパティのキーが {\itshape 管理キー} ならば、その {\itshape 値} は {\itshape 管理下} {\itshape オブジェクト} である。プロパティリスト自体も管理下オブジェクトである。 \doxysubsection{関数詳解} \mbox{\label{group__m17nPlist_ga687bcaacf8110e0f60a12c9ebc288b4c}} \index{プロパティリスト@{プロパティリスト}!mplist\_deserialize@{mplist\_deserialize}} \index{mplist\_deserialize@{mplist\_deserialize}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_deserialize()}{mplist\_deserialize()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}} $\ast$ mplist\+\_\+deserialize (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMText}{MText}} $\ast$}]{mt }\end{DoxyParamCaption})} M-\/text をデシリアライズしてプロパティリストを作る. 関数 \mbox{\hyperlink{group__m17nPlist_ga687bcaacf8110e0f60a12c9ebc288b4c}{mplist\+\_\+deserialize()}} は M-\/text {\bfseries{mt}} を解析してプロパティリストを返す。 {\bfseries{mt}} のシンタックスは以下の通り。 MT \+::= \textquotesingle{}(\textquotesingle{} ELEMENT $\ast$ \textquotesingle{})\textquotesingle{} ELEMENT \+::= SYMBOL $\vert$ INTEGER $\vert$ M-\/\+TEXT $\vert$ PLIST SYMBOL \+::= アスキー文字列 INTEGER \+::= \textquotesingle{}-\/\textquotesingle{} ? \mbox{[} \textquotesingle{}0\textquotesingle{} $\vert$ .. $\vert$ \textquotesingle{}9\textquotesingle{} \mbox{]}+ $\vert$ \textquotesingle{}0x\textquotesingle{} \mbox{[} \textquotesingle{}0\textquotesingle{} $\vert$ .. $\vert$ \textquotesingle{}9\textquotesingle{} $\vert$ \textquotesingle{}A\textquotesingle{} $\vert$ .. $\vert$ \textquotesingle{}F\textquotesingle{} $\vert$ \textquotesingle{}a\textquotesingle{} $\vert$ .. $\vert$ \textquotesingle{}f\textquotesingle{} \mbox{]}+ M-\/\+TEXT \+::= \textquotesingle{}\char`\"{}\textquotesingle{} character-\/sequence \textquotesingle{}\char`\"{}\textquotesingle{} {\ttfamily ELEMENT} の各選択肢はキー:{\ttfamily Msymbol}, {\ttfamily Minteger}, {\ttfamily Mtext}, {\ttfamily Mplist} のいずれかを割り当てられている。 アスキー文字列内では、バックスラッシュ () がエスケープ文字として用いられる。たとえば {\ttfamily abc\textbackslash{} def} は 4 文字目が空白文字であり長さが 7 である持つ名前を持つシンボルを生成する。 \mbox{\label{group__m17nPlist_ga86cff73047b6462271d086f7365782ff}} \index{プロパティリスト@{プロパティリスト}!mplist@{mplist}} \index{mplist@{mplist}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist()}{mplist()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})} プロパティリストオブジェクトを作る. 関数 \mbox{\hyperlink{group__m17nPlist_ga86cff73047b6462271d086f7365782ff}{mplist()}} は長さ 0 のプロパティリストオブジェクトを新しく作って返す。 \begin{DoxyParagraph}{戻り値\+:} この関数は新しく作られたプロパティリストオブジェクトを返す。 \end{DoxyParagraph} \begin{DoxyParagraph}{エラー\+:} この関数は決して失敗しない。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga03cb2253e439ec15d0bbbac6f86f0e37}} \index{プロパティリスト@{プロパティリスト}!mplist\_copy@{mplist\_copy}} \index{mplist\_copy@{mplist\_copy}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_copy()}{mplist\_copy()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+copy (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリストをコピーする. 関数 \mbox{\hyperlink{group__m17nPlist_ga03cb2253e439ec15d0bbbac6f86f0e37}{mplist\+\_\+copy()}} はプロパティリスト {\bfseries{plist}} をコピーする。コピーのすべての値はコピー元 {\bfseries{plist}} の値と同じである。 \begin{DoxyParagraph}{戻り値\+:} この関数は新しく作られた、{\bfseries{plist}} のコピーであるプロパティリストを返す。 ~\newline \end{DoxyParagraph} \begin{DoxyParagraph}{エラー\+:} この関数は決して失敗しない。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}} \index{プロパティリスト@{プロパティリスト}!mplist\_put@{mplist\_put}} \index{mplist\_put@{mplist\_put}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_put()}{mplist\_put()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+put (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key, }\item[{void $\ast$}]{val }\end{DoxyParamCaption})} プロパティリスト中のプロパティの値を設定する. 関数 \mbox{\hyperlink{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}{mplist\+\_\+put()}} はプロパティリスト {\bfseries{plist}} を始めから探して、キーが {\bfseries{key}} であるプロパティを見つける。見つかれば、その値を {\bfseries{value}} に変更する。見つからなければ、キーが {\bfseries{key}} で値が {\bfseries{value}} である新しいプロパティが {\bfseries{plist}} の末尾に追加される。{\bfseries{key}} と {\bfseries{val}} に対する制限については、mplist\+\_\+add() の説明を参照。 {\bfseries{key}} が管理キーならば、 {\bfseries{val}} は管理下オブジェクトでなくてはならない。この場合、古い値の参照数は {\ttfamily NULL} でなければ 1 減らされ、{\bfseries{val}} の参照数は 1 増やされる。 \begin{DoxyParagraph}{戻り値\+: } 処理が成功すれば \mbox{\hyperlink{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}{mplist\+\_\+put()}} は変更されたか追加された要素から始まる {\bfseries{plist}} の部分リストを返す。そうでなければ {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga2a2f833fccd7b699eb31e5de62cea41b}} \index{プロパティリスト@{プロパティリスト}!mplist\_get@{mplist\_get}} \index{mplist\_get@{mplist\_get}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_get()}{mplist\_get()}} {\footnotesize\ttfamily void$\ast$ mplist\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key }\end{DoxyParamCaption})} プロパティリスト中のプロパティの値を得る. 関数 \mbox{\hyperlink{group__m17nPlist_ga2a2f833fccd7b699eb31e5de62cea41b}{mplist\+\_\+get()}} は、プロパティリスト {\bfseries{plist}} を始めから探して、キー が {\bfseries{key}} であるプロパティを見つける。見つかれば、その値を {\ttfamily (void $\ast$)} 型で返す。見つからなければ {\ttfamily NULL} を返す。 {\ttfamily NULL} が返った際には二つの可能性がある\+: 上記のようにプロパティが見つからなかった場合と、プロパティが見つかり、その値が {\ttfamily NULL} である場合である。これらを区別する必要がある場合には関数 \mbox{\hyperlink{group__m17nPlist_ga73caf1b7a0082184ff15e1b3e2da8969}{mplist\+\_\+find\+\_\+by\+\_\+key()}} を使うこと。 \begin{DoxyParagraph}{参照\+:} \mbox{\hyperlink{group__m17nPlist_ga73caf1b7a0082184ff15e1b3e2da8969}{mplist\+\_\+find\+\_\+by\+\_\+key()}} \end{DoxyParagraph} \mbox{\label{group__m17nPlist_gab1654476aef37dbea02c56476353ab8e}} \index{プロパティリスト@{プロパティリスト}!mplist\_put\_func@{mplist\_put\_func}} \index{mplist\_put\_func@{mplist\_put\_func}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_put\_func()}{mplist\_put\_func()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+put\+\_\+func (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key, }\item[{\mbox{\hyperlink{group__m17nCore_ga19c0932d1f3f2067bd1d7175cc26932b}{M17\+NFunc}}}]{func }\end{DoxyParamCaption})} プロパティリスト中のプロパティに関数ポインタである値を設定する. 関数 \mbox{\hyperlink{group__m17nPlist_gab1654476aef37dbea02c56476353ab8e}{mplist\+\_\+put\+\_\+func()}} は関数 \mbox{\hyperlink{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}{mplist\+\_\+put()}} 同様、プロパティリスト {\bfseries{plist}} 中でキーが {\bfseries{key}} であるプロパティに値を設定する。但しその値は関数ポインタ {\bfseries{func}} である。{\bfseries{key}} は管理キーであってはならない。 \begin{DoxyParagraph}{参照\+:} \mbox{\hyperlink{group__m17nPlist_gafbfabe7a3e97e3dc6968263f61a3bee3}{mplist\+\_\+put()}}, \mbox{\hyperlink{group__m17nCore_ga56e45d7b0345761359001fe038d121ae}{M17\+N\+\_\+\+FUNC()}} \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga215ddb45ee970edbee7ff2e2e6bc1e8d}} \index{プロパティリスト@{プロパティリスト}!mplist\_get\_func@{mplist\_get\_func}} \index{mplist\_get\_func@{mplist\_get\_func}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_get\_func()}{mplist\_get\_func()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__m17nCore_ga19c0932d1f3f2067bd1d7175cc26932b}{M17\+NFunc}} mplist\+\_\+get\+\_\+func (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key }\end{DoxyParamCaption})} プロパティリストからプロパティの関数ポインタである値を得る. 関数 \mbox{\hyperlink{group__m17nPlist_ga215ddb45ee970edbee7ff2e2e6bc1e8d}{mplist\+\_\+get\+\_\+func()}} は関数 \mbox{\hyperlink{group__m17nPlist_ga2a2f833fccd7b699eb31e5de62cea41b}{mplist\+\_\+get()}} と同様に、プロパティリ スト {\bfseries{plist}} 中でキーが {\bfseries{key}} であるプロパティの値、但し関数ポインタ、 を得る。 \begin{DoxyParagraph}{参照\+:} \mbox{\hyperlink{group__m17nPlist_ga2a2f833fccd7b699eb31e5de62cea41b}{mplist\+\_\+get()}} \end{DoxyParagraph} \mbox{\label{group__m17nPlist_gaf5d13d2df5af9260356aa415e3965def}} \index{プロパティリスト@{プロパティリスト}!mplist\_add@{mplist\_add}} \index{mplist\_add@{mplist\_add}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_add()}{mplist\_add()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key, }\item[{void $\ast$}]{val }\end{DoxyParamCaption})} プロパティリスト末尾にプロパティを追加する. 関数 \mbox{\hyperlink{group__m17nPlist_gaf5d13d2df5af9260356aa415e3965def}{mplist\+\_\+add()}} は、プロパティリスト {\bfseries{plist}} の末尾にキーが {\bfseries{key}} で値が {\bfseries{val}} であるプロパティを追加する。{\bfseries{key}} は、{\ttfamily Mnil} 以外の任意のシンボルでよい。 {\bfseries{key}} が管理キーならば、{\bfseries{val}} は管理下オブジェクトでなくてはならない。この場合、 {\bfseries{val}} の参照数は 1 増やされる。 \begin{DoxyParagraph}{戻り値\+:} 処理が成功すれば \mbox{\hyperlink{group__m17nPlist_gaf5d13d2df5af9260356aa415e3965def}{mplist\+\_\+add()}} は追加された要素から始まる {\bfseries{plist}} の部分リストを返す。そうでなければ {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga20e766b438f42a13bdee803908e6096d}} \index{プロパティリスト@{プロパティリスト}!mplist\_push@{mplist\_push}} \index{mplist\_push@{mplist\_push}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_push()}{mplist\_push()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+push (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key, }\item[{void $\ast$}]{val }\end{DoxyParamCaption})} プロパティリストの先頭にプロパティを挿入する. 関数 \mbox{\hyperlink{group__m17nPlist_ga20e766b438f42a13bdee803908e6096d}{mplist\+\_\+push()}} はプロパティリスト {\bfseries{plist}} の先頭にキーが {\bfseries{key}} で値が {\bfseries{val}} であるオブジェクトを挿入する。 {\bfseries{key}} が管理キーならば、{\bfseries{val}} は管理下オブジェクトでなくてはならない。この場合、 {\bfseries{val}} の参照数は 1 増やされる。 \begin{DoxyParagraph}{戻り値\+:} 処理が成功すればこの関数は {\bfseries{plist}} を返し、そうでなければ{\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_gae05459bfe72a34eefe5a04b4aa75d20a}} \index{プロパティリスト@{プロパティリスト}!mplist\_pop@{mplist\_pop}} \index{mplist\_pop@{mplist\_pop}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_pop()}{mplist\_pop()}} {\footnotesize\ttfamily void$\ast$ mplist\+\_\+pop (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリストの先頭からプロパティを削除する. 関数 \mbox{\hyperlink{group__m17nPlist_gae05459bfe72a34eefe5a04b4aa75d20a}{mplist\+\_\+pop()}} はプロパティリスト {\bfseries{plist}} の先頭のプロパティを削 除する。結果として、元の2番目のキーと値が先頭のキーと値になる。 \begin{DoxyParagraph}{戻り値\+: } 処理に成功すれば、この関数は削除されたプロパティの値を返す。そうでなければ {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga73caf1b7a0082184ff15e1b3e2da8969}} \index{プロパティリスト@{プロパティリスト}!mplist\_find\_by\_key@{mplist\_find\_by\_key}} \index{mplist\_find\_by\_key@{mplist\_find\_by\_key}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_find\_by\_key()}{mplist\_find\_by\_key()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+find\+\_\+by\+\_\+key (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key }\end{DoxyParamCaption})} プロパティリスト中から指定のキーを持つプロパティを探す. 関数 \mbox{\hyperlink{group__m17nPlist_ga73caf1b7a0082184ff15e1b3e2da8969}{mplist\+\_\+find\+\_\+by\+\_\+key()}} はプロパティリスト {\bfseries{plist}} を始めから探 して、キーが {\bfseries{key}} であるプロパティを見つける。見つかれば、そのプロパティから始まる {\bfseries{plist}} の部分リストを返す。そうでなければ {\ttfamily NULL} を返す。 {\bfseries{key}} が {\ttfamily Mnil} ならば、{\bfseries{plist}} の最後の要素から始まる部分リストを返す。 \mbox{\label{group__m17nPlist_gaeb782bf76f84a8620331c8de70d43ba7}} \index{プロパティリスト@{プロパティリスト}!mplist\_find\_by\_value@{mplist\_find\_by\_value}} \index{mplist\_find\_by\_value@{mplist\_find\_by\_value}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_find\_by\_value()}{mplist\_find\_by\_value()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+find\+\_\+by\+\_\+value (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{void $\ast$}]{val }\end{DoxyParamCaption})} プロパティリスト中から指定の値を持つプロパティを探す. 関数 \mbox{\hyperlink{group__m17nPlist_gaeb782bf76f84a8620331c8de70d43ba7}{mplist\+\_\+find\+\_\+by\+\_\+value()}} はプロパティリスト {\bfseries{plist}} を始めから探して、値が {\bfseries{val}} であるプロパティを見つける。見つかれば、そのプロパティから始まる {\bfseries{plist}} の部分リストを返す。そうでなければ {\ttfamily NULL} を返す。 \mbox{\label{group__m17nPlist_ga5c7598c133f6a177a2ad5781fc712f6e}} \index{プロパティリスト@{プロパティリスト}!mplist\_next@{mplist\_next}} \index{mplist\_next@{mplist\_next}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_next()}{mplist\_next()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+next (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリストの次の部分リストを返す. 関数 \mbox{\hyperlink{group__m17nPlist_ga5c7598c133f6a177a2ad5781fc712f6e}{mplist\+\_\+next()}} はプロパティリスト {\bfseries{plist}} の 2 番目の要素から始まる部分リストへのポインタを返す。{\bfseries{plist}} の長さが 0 ならば {\ttfamily NULL} を返す。 \mbox{\label{group__m17nPlist_gab343caba712200f5324c12f668f7e6da}} \index{プロパティリスト@{プロパティリスト}!mplist\_set@{mplist\_set}} \index{mplist\_set@{mplist\_set}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_set()}{mplist\_set()}} {\footnotesize\ttfamily \mbox{\hyperlink{structMPlist}{MPlist}}$\ast$ mplist\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist, }\item[{MSymbol}]{key, }\item[{void $\ast$}]{val }\end{DoxyParamCaption})} プロパティリストの最初のプロパティを設定する. 関数 \mbox{\hyperlink{group__m17nPlist_gab343caba712200f5324c12f668f7e6da}{mplist\+\_\+set()}} はプロパティリスト {\bfseries{plist}} の最初のプロパティのキーと値をそれぞれ {\bfseries{key}} と {\bfseries{value}} に設定する。 {\bfseries{key}} と {\bfseries{val}} に対する制限については、mplist\+\_\+add() の説明を参照。 \begin{DoxyParagraph}{戻り値\+:} 処理に成功すれば \mbox{\hyperlink{group__m17nPlist_gab343caba712200f5324c12f668f7e6da}{mplist\+\_\+set()}} は {\bfseries{plist}} を返す。そうでなければ {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nPlist_ga334646ff9553354f4b041947f000764d}} \index{プロパティリスト@{プロパティリスト}!mplist\_length@{mplist\_length}} \index{mplist\_length@{mplist\_length}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_length()}{mplist\_length()}} {\footnotesize\ttfamily int mplist\+\_\+length (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリストの長さを返す. 関数 \mbox{\hyperlink{group__m17nPlist_ga334646ff9553354f4b041947f000764d}{mplist\+\_\+length()}} はプロパティリスト {\bfseries{plist}} 中のプロパティの数を返す。 \mbox{\label{group__m17nPlist_ga79d757b26382412e7ea69e914bc06a07}} \index{プロパティリスト@{プロパティリスト}!mplist\_key@{mplist\_key}} \index{mplist\_key@{mplist\_key}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_key()}{mplist\_key()}} {\footnotesize\ttfamily MSymbol mplist\+\_\+key (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリスト中の最初のプロパティのキーを返す. 関数 \mbox{\hyperlink{group__m17nPlist_ga79d757b26382412e7ea69e914bc06a07}{mplist\+\_\+key()}} は、プロパティリスト {\bfseries{plist}} 中の最初のプロパティのキーを返す。{\bfseries{plist}} の長さが 0 ならば、 {\ttfamily Mnil} を返す。 \mbox{\label{group__m17nPlist_ga855f3010b216bcf5f0914553fc034295}} \index{プロパティリスト@{プロパティリスト}!mplist\_value@{mplist\_value}} \index{mplist\_value@{mplist\_value}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{mplist\_value()}{mplist\_value()}} {\footnotesize\ttfamily void$\ast$ mplist\+\_\+value (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMPlist}{MPlist}} $\ast$}]{plist }\end{DoxyParamCaption})} プロパティリスト中の最初のプロパティの値を返す. 関数 \mbox{\hyperlink{group__m17nPlist_ga855f3010b216bcf5f0914553fc034295}{mplist\+\_\+value()}} は、プロパティリスト {\bfseries{plist}} 中の最初のプロパティの値を返す。 {\bfseries{plist}} の長さが 0 ならば、 {\ttfamily Mnil} を返す。 \doxysubsection{変数詳解} \mbox{\label{group__m17nPlist_ga0ce08eb57aa339db4d4745e75e80fdd8}} \index{プロパティリスト@{プロパティリスト}!Minteger@{Minteger}} \index{Minteger@{Minteger}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{Minteger}{Minteger}} {\footnotesize\ttfamily MSymbol Minteger} \char`\"{}integer\char`\"{} を名前として持つシンボル. シンボル {\ttfamily Minteger} は {\ttfamily \char`\"{}integer\char`\"{}} という名前を持つ。キーが {\ttfamily Minteger} であるプロパティの値は整数値でなくてはならない。 \mbox{\label{group__m17nPlist_ga933000e154873f9bfcaa56d976bd259b}} \index{プロパティリスト@{プロパティリスト}!Mplist@{Mplist}} \index{Mplist@{Mplist}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{Mplist}{Mplist}} {\footnotesize\ttfamily MSymbol Mplist} \char`\"{}plist\char`\"{} を名前として持つシンボル. シンボル {\ttfamily Mplist} は {\ttfamily \char`\"{}plist\char`\"{}} という名前を持つ。これは管理キーである。キーが {\ttfamily Mplist} であるプロパティの値は plist でなくてはならない。 \mbox{\label{group__m17nPlist_ga1a22859374071a0ca66f12452afee8bd}} \index{プロパティリスト@{プロパティリスト}!Mtext@{Mtext}} \index{Mtext@{Mtext}!プロパティリスト@{プロパティリスト}} \doxysubsubsection{\texorpdfstring{Mtext}{Mtext}} {\footnotesize\ttfamily MSymbol Mtext} \char`\"{}mtext\char`\"{} を名前として持つシンボル. シンボル {\ttfamily Mtext} は {\ttfamily \char`\"{}mtext\char`\"{}} という名前を持つ管理キーである。キーが {\ttfamily Mtext} であるプロパティの値は M-\/text でなくてはならない。