DLLEXPORT FPDF_BOOL STDCALL FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, FPDF_BYTESTRING bsText, FPDF_DWORD size) { if (stringHandle == NULL || bsText == NULL || size <= 0) return FALSE; CFX_ByteStringArray* stringArr = (CFX_ByteStringArray*)stringHandle; CFX_ByteString bsStr(bsText, size); stringArr->Add(bsStr); return TRUE; }
Tnode* initxlabel(Label l) { return stringnode("label type=%s state=%s epoch=%#ux tag=%#ux", btStr(l.type), bsStr(l.state), l.epoch, l.tag); }