* Find a company manager face style by label. * @param label Label to find. * @return Index of face style if label is found, otherwise std::nullopt. */
| 1407 | * @return Index of face style if label is found, otherwise std::nullopt. |
| 1408 | */ |
| 1409 | std::optional<uint> FindCompanyManagerFaceLabel(std::string_view label) |
| 1410 | { |
| 1411 | auto it = std::ranges::find(_faces, label, &FaceSpec::label); |
| 1412 | if (it == std::end(_faces)) return std::nullopt; |
| 1413 | |
| 1414 | return static_cast<uint>(std::distance(std::begin(_faces), it)); |
| 1415 | } |
| 1416 | |
| 1417 | /** |
| 1418 | * Get the face variables for a face style. |
no test coverage detected