| 780 | } |
| 781 | |
| 782 | inline bool GetRepeatedString(const char *pszFieldName, int index, char *out, int size) |
| 783 | { |
| 784 | GETCHECK_FIELD(); |
| 785 | CHECK_FIELD_TYPE(STRING); |
| 786 | CHECK_FIELD_REPEATED(); |
| 787 | CHECK_REPEATED_ELEMENT(index); |
| 788 | |
| 789 | std::string scratch; |
| 790 | ke::SafeStrcpy(out, size, msg->GetReflection()->GetRepeatedStringReference(*msg, field, index, &scratch).c_str()); |
| 791 | |
| 792 | return true; |
| 793 | } |
| 794 | |
| 795 | inline bool SetRepeatedString(const char *pszFieldName, int index, const char *value) |
| 796 | { |
no test coverage detected