方法
GLibMatchInfofetch_named_pos
自:2.14
声明 [src]
gboolean
g_match_info_fetch_named_pos (
const GMatchInfo* match_info,
const gchar* name,
gint* start_pos,
gint* end_pos
)
描述 [src]
获取命名捕获括号中指定的 name 位置的字节偏移。
如果 name 是有效的子模式名称但未匹配任何内容(例如,子模式 "X",匹配 "b" 对 "(?P),则将 start_pos 和 end_pos 赋值为 -1,并返回 TRUE。
自 2.14 起可用