00001 // Filename: rangeIterator.I 00002 // Created by: drose (07Sep03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: RangeIterator::get_code 00018 // Access: Public 00019 // Description: Returns the current Unicode value represented by the 00020 // iterator, or -1 if the iterator has reached the end. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE int RangeIterator:: 00023 get_code() const { 00024 return _code; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: RangeIterator::eof 00029 // Access: Public 00030 // Description: Returns true if all the code have been retrieved, 00031 // false otherwise. 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE bool RangeIterator:: 00034 eof() const { 00035 return (_it == _desc._range_list.end()); 00036 }