| 681 | } |
| 682 | |
| 683 | bool TYandexConfig::Directives::GetValue(TStringBuf key, TString& value) const { |
| 684 | const_iterator I = find(key); |
| 685 | |
| 686 | if (I == end()) { |
| 687 | if (strict) { |
| 688 | ythrow yexception() << "key " << key << " not declared"; |
| 689 | } |
| 690 | |
| 691 | return false; |
| 692 | } |
| 693 | |
| 694 | if ((*I).second == nullptr) { |
| 695 | return false; |
| 696 | } |
| 697 | |
| 698 | value = (*I).second; |
| 699 | |
| 700 | return true; |
| 701 | } |
| 702 | |
| 703 | bool TYandexConfig::Directives::GetNonEmptyValue(TStringBuf key, TString& value) const { |
| 704 | TString tempValue; |
no test coverage detected