GetContextMap
すべてのコンテキスト エントリが含まれるマップを取得します。
構文
MAP_STRING**getContextMap(Message* message)
Where the MAP_STRING is defined by
typedef struct map_string{
char* key;
char* value;
}MAP_STRING;
MAP_STRING**getContextMap(Message* message)
Where the MAP_STRING is defined by
typedef struct map_string{
UChar* key;
UChar* value;
}MAP_STRING;
パラメータ
- Message - この関数で操作するメッセージ。
結果
すべてのコンテキスト エントリが含まれる MAP_STRING の配列を返します。
例
int i;
char* name;
char* value;
MAP_STRING** mapping;
mapping = getContextMap( message);
i=0;
while(mapping[i] != NULL)
{
name= mapping[i]->key;
value = mapping[i]->value;
i++;
}
int i;
UChar* name;
UChar* value;
MAP_STRING** mapping;
mapping = getContextMap( message);
i=0;
while(mapping[i] != NULL)
{
name= mapping[i]->key;
value = mapping[i]->value;
i++;
}