- Timestamp:
- 07/01/06 07:33:49 (2 years ago)
- Files:
-
- trunk/tinyxml.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tinyxml.d
r30 r33 846 846 } 847 847 848 848 int opApply(int delegate(inout TiXmlNode) dg) 849 { 850 int res = 0; 851 auto a = FirstChild(); 852 while (! (a is null)) 853 { 854 res = dg(a); 855 if (res) 856 break; 857 858 a = a.NextSibling; 859 } 860 return res; 861 } 849 862 /** An alternate way to walk the children of a node. 850 863 One way to iterate over nodes is: … … 863 876 first. IterateChildren will return null when done. 864 877 */ 878 879 865 880 TiXmlNode IterateChildren( TiXmlNode previous ) 866 881 {
