| 565 | } |
| 566 | |
| 567 | String SettingSaveNode::getGroup(const String &name, S32 num) |
| 568 | { |
| 569 | String::SizeType pos = 0; |
| 570 | String::SizeType lastPos = 0; |
| 571 | S32 count = 0; |
| 572 | |
| 573 | while(pos != String::NPos) |
| 574 | { |
| 575 | lastPos = pos; |
| 576 | pos = name.find("/", pos + 1); |
| 577 | |
| 578 | if(count == num) |
| 579 | { |
| 580 | String::SizeType startPos = lastPos; |
| 581 | |
| 582 | if(count > 0) |
| 583 | startPos++; |
| 584 | |
| 585 | if(pos == String::NPos) |
| 586 | return name.substr(startPos, name.length() - (startPos)); |
| 587 | else |
| 588 | return name.substr(startPos, pos - startPos); |
| 589 | } |
| 590 | |
| 591 | count++; |
| 592 | } |
| 593 | |
| 594 | return String(""); |
| 595 | } |
| 596 | |
| 597 | String SettingSaveNode::getSettingName(const String &name) |
| 598 | { |
no test coverage detected