* Get the group with the given name. * @param name name of the group to find. * @return The requested group or \c nullptr if not found. */
| 116 | * @return The requested group or \c nullptr if not found. |
| 117 | */ |
| 118 | const IniGroup *IniLoadFile::GetGroup(std::string_view name) const |
| 119 | { |
| 120 | for (const IniGroup &group : this->groups) { |
| 121 | if (group.name == name) return &group; |
| 122 | } |
| 123 | |
| 124 | return nullptr; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Get the group with the given name. |
no outgoing calls
no test coverage detected