| 107 | } |
| 108 | |
| 109 | static void SplitSequencePathAndName( String& srcPath, String& srcName ) |
| 110 | { |
| 111 | srcName = ""; |
| 112 | |
| 113 | // Determine if there is a sequence name at the end of the source string, and |
| 114 | // if so, split the filename from the sequence name |
| 115 | S32 split = srcPath.find(' ', 0, String::Right); |
| 116 | S32 split2 = srcPath.find('\t', 0, String::Right); |
| 117 | if ((split == String::NPos) || (split2 > split)) |
| 118 | split = split2; |
| 119 | if (split != String::NPos) |
| 120 | { |
| 121 | split2 = split + 1; |
| 122 | while ((srcPath[split2] != '\0') && dIsspace(srcPath[split2])) |
| 123 | split2++; |
| 124 | |
| 125 | // now 'split' is at the end of the path, and 'split2' is at the start of the sequence name |
| 126 | srcName = srcPath.substr(split2); |
| 127 | srcPath = srcPath.erase(split, srcPath.length()-split); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | //----------------------------------------------------------------------------- |
| 132 | |