textprop.c


関数

void * mtext_get_prop (MText *mt, int pos, MSymbol key)
 テキストプロパティの一番上の値を得る.
int mtext_get_prop_values (MText *mt, int pos, MSymbol key, void **values, int num)
 テキストプロパティの値を複数個得る.
int mtext_get_prop_keys (MText *mt, int pos, MSymbol **keys)
 M-text の指定した位置のテキストプロパティのキーのリストを得る.
int mtext_put_prop (MText *mt, int from, int to, MSymbol key, void *val)
 テキストプロパティを設定する.
int mtext_put_prop_values (MText *mt, int from, int to, MSymbol key, void **values, int num)
 同じキーのテキストプロパティを複数設定する.
int mtext_push_prop (MText *mt, int from, int to, MSymbol key, void *val)
 テキストプロパティをプッシュする.
int mtext_pop_prop (MText *mt, int from, int to, MSymbol key)
 テキストプロパティをポップする.
int mtext_prop_range (MText *mt, MSymbol key, int pos, int *from, int *to, int deeper)
 テキストプロパティが同じ値をとる範囲を調べる.
MTextPropertymtext_property (MSymbol key, void *val, int control_bits)
 テキストプロパティを生成する.
MTextmtext_property_mtext (MTextProperty *prop)
 あるテキストプロパティを持つ M-text を返す.
MSymbol mtext_property_key (MTextProperty *prop)
 テキストプロパティのキーを返す.
void * mtext_property_value (MTextProperty *prop)
 テキストプロパティの値を返す.
int mtext_property_start (MTextProperty *prop)
 テキストプロパティの開始位置を返す.
int mtext_property_end (MTextProperty *prop)
 テキストプロパティの終了位置を返す.
MTextPropertymtext_get_property (MText *mt, int pos, MSymbol key)
 一番上のテキストプロパティを得る.
int mtext_get_properties (MText *mt, int pos, MSymbol key, MTextProperty **props, int num)
 複数のテキストプロパティを得る.
int mtext_attach_property (MText *mt, int from, int to, MTextProperty *prop)
 M-textにテキストプロパティを付加する.
int mtext_detach_property (MTextProperty *prop)
 M-text からテキストプロパティを分離する.
int mtext_push_property (MText *mt, int from, int to, MTextProperty *prop)
 M-text にテキストプロパティをプッシュする.
MTextmtext_serialize (MText *mt, int from, int to, MPlist *property_list)
 M-text 中のテキストプロパティをシリアライズする.
MTextmtext_deserialize (MText *mt)
 M-text 中のテキストプロパティをデシリアライズする.

変数

MSymbol Mtext_prop_serializer
 シリアライザ関数を指定するシンボル.
MSymbol Mtext_prop_deserializer
 デシリアライザ関数を指定するシンボル.

m17n-lib Home