Changeset 505 in dev for trunk/ab5.0/abdev/ab_common/src/Namespace.cpp
- Timestamp:
- Apr 28, 2008, 7:28:47 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/ab_common/src
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Namespace.cpp
r503 r505 4 4 5 5 6 NamespaceScopes::NamespaceScopes( const string &namespaceStr ){ 6 using namespace ActiveBasic::Common::Lexical; 7 8 9 NamespaceScopes::NamespaceScopes( const std::string &namespaceStr ){ 7 10 if( namespaceStr.size() == 0 ){ 8 11 return; 9 12 } 10 13 11 st ring::size_type i = 0;14 std::string::size_type i = 0; 12 15 while( true ){ 13 st ring::size_type i2 = namespaceStr.find( '.', i );16 std::string::size_type i2 = namespaceStr.find( '.', i ); 14 17 15 st ring tempName = namespaceStr.substr( i, i2-i );18 std::string tempName = namespaceStr.substr( i, i2-i ); 16 19 17 20 push_back( tempName ); 18 21 19 if( i2 == st ring::npos ){22 if( i2 == std::string::npos ){ 20 23 break; 21 24 }
Note:
See TracChangeset
for help on using the changeset viewer.