ustring?

软件和网站开发以及相关技术探讨
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

ustring?

#1

帖子 eexpress » 2007-12-29 0:42

‘compose’ 不是 ‘Glib::ustring’ 的成员
ustring u;
u=ustring::compose(format, item, value);
晕的。
● 鸣学
头像
tipfoo
帖子: 303
注册时间: 2007-07-12 16:30
来自: 桂林

#2

帖子 tipfoo » 2007-12-29 10:28

gtkmm 2.4 documentation(DevHelp)中可以看到:
‘compose’ 不是 ‘Glib::ustring’ 的成员。
你想实现什么啊?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-12-30 18:45

但是http://www.gtkmm.org/docs/glibmm-2.4/docs/refe ... g.html有这段啊
Formatted output and internationalization
The methods ustring::compose() and ustring::format() provide a convenient and powerful alternative to string streams, as shown in the example below. Refer to the method documentation of compose() and format() for details.
using Glib::ustring;

ustring message = ustring::compose("%1 is lower than 0x%2.",
12, ustring::format(std::hex, 16));
● 鸣学
头像
tipfoo
帖子: 303
注册时间: 2007-07-12 16:30
来自: 桂林

#4

帖子 tipfoo » 2007-12-30 20:54

你系统里装的 libglibmm 版本是 2.14,而那两个函数刚好是从 2.16 才开始有。:lol::lol::lol:( :( 怎么少了颗牙齿……)
你找找“Since glibmm 2.16”就知道了。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#5

帖子 eexpress » 2007-12-31 20:07

nnnnnd
这些家伙
还是devhelp不好。不详细。否则不需要看网站的。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#6

帖子 eexpress » 2007-12-31 20:11

另外,glade-3的下面那个devhelp关联,就是关联的类名。知道如何直接关联到gtkmm的吗?老是关联到gtk+的条目。
● 鸣学
回复