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