197 | | |
| 197 | ''!GetNameTokens'' |
| 198 | |
| 199 | For consistency, the !GetNameTokens signature will change to the following: |
| 200 | |
| 201 | |
| 202 | {{{ |
| 203 | FdoStringsP FdoProviderNameTokens::GetNameTokens( bool includeVersion = true ) |
| 204 | }}} |
| 205 | |
| 206 | includeVersion is a new parameter. When false, the returned string collection will not include the version parts. |
| 207 | |
| 208 | For Example, the following removes the version parts from a provider name (note that a bit more work is required than in the above ToString example): |
| 209 | |
| 210 | |
| 211 | {{{ |
| 212 | FdoStringP srcName = L"Autodesk.Oracle.3.1"; |
| 213 | FdoStringP destName; |
| 214 | FdoProviderNameTokensP tokens = FdoProviderNameTokens::Create( srcName ); |
| 215 | GisStringsP nameTokens = tokens->GetNameTokens( false ); |
| 216 | destName = tokens->ToString( L"." ); |
| 217 | assert ( destName == L"Autodesk.Oracle" ); |
| 218 | }}} |
| 219 | |
| 220 | |
| 221 | |