| 12077 | } |
| 12078 | |
| 12079 | static void AddAttributeTargetName(BfAttributeTargets& flagsLeft, BfAttributeTargets checkFlag, String& str, String addString) |
| 12080 | { |
| 12081 | if ((flagsLeft & checkFlag) == 0) |
| 12082 | return; |
| 12083 | |
| 12084 | if (!str.empty()) |
| 12085 | { |
| 12086 | if (flagsLeft == checkFlag) |
| 12087 | { |
| 12088 | if ((int)str.IndexOf(',') != -1) |
| 12089 | str += ", and "; |
| 12090 | else |
| 12091 | str += " and "; |
| 12092 | } |
| 12093 | else |
| 12094 | str += ", "; |
| 12095 | } |
| 12096 | str += addString; |
| 12097 | flagsLeft = (BfAttributeTargets)(flagsLeft & ~checkFlag); |
| 12098 | } |
| 12099 | |
| 12100 | static String GetAttributesTargetListString(BfAttributeTargets attrTarget) |
| 12101 | { |
no test coverage detected