| 18 | namespace |
| 19 | { |
| 20 | bool IsEncodingUsed(const ColorSpaceSetRcPtr & colorspaces, const char * encName) |
| 21 | { |
| 22 | const std::string teststr = StringUtils::Lower(encName); |
| 23 | const int numCS = colorspaces->getNumColorSpaces(); |
| 24 | for (int cs = 0; cs < numCS; ++cs) |
| 25 | { |
| 26 | auto colorspace = colorspaces->getColorSpaceByIndex(cs); |
| 27 | const std::string csis{ colorspace->getEncoding() }; |
| 28 | if (StringUtils::Lower(csis) == teststr) |
| 29 | { |
| 30 | return true; |
| 31 | } |
| 32 | } |
| 33 | return false; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | class ViewingRule |
no test coverage detected