Rename fixes to STL.
Removed object reporting in non-verbose from newobject demos. Made wstring treat them as normal strings as advertised. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4cd98d3865
commit
81c84b7e8c
16 changed files with 131 additions and 125 deletions
|
|
@ -137,8 +137,7 @@
|
|||
|
||||
%extend {
|
||||
|
||||
%rename("delete") __delitem__;
|
||||
VALUE __delitem__(const key_type& key) {
|
||||
VALUE __delete__(const key_type& key) {
|
||||
Map::iterator i = self->find(key);
|
||||
if (i != self->end()) {
|
||||
self->erase(i);
|
||||
|
|
@ -149,7 +148,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
%rename("has_key?") has_key;
|
||||
bool has_key(const key_type& key) const {
|
||||
Map::const_iterator i = self->find(key);
|
||||
return i != self->end();
|
||||
|
|
@ -306,7 +304,6 @@
|
|||
return ary;
|
||||
}
|
||||
|
||||
%rename("include?") __contains__;
|
||||
bool __contains__(const key_type& key) {
|
||||
return self->find(key) != self->end();
|
||||
}
|
||||
|
|
@ -399,16 +396,6 @@
|
|||
%enddef
|
||||
|
||||
|
||||
#if defined(SWIG_RUBY_AUTORENAME)
|
||||
|
||||
%mixin std::map "Enumerable";
|
||||
%rename("empty?") std::map::empty;
|
||||
|
||||
#else
|
||||
|
||||
%mixin std::map "Enumerable";
|
||||
%rename("empty?") std::map::empty;
|
||||
|
||||
#endif
|
||||
%mixin std::map "Enumerable";
|
||||
|
||||
%include <std/std_map.i>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue