Skip to main content

dwg_dynapi_entity_utf8text

Function dwg_dynapi_entity_utf8text 

Source
pub unsafe extern "C" fn dwg_dynapi_entity_utf8text(
    entity: *mut c_void,
    name: *const c_char,
    fieldname: *const c_char,
    textp: *mut *mut c_char,
    isnewp: *mut c_int,
    fp: *mut Dwg_DYNAPI_field,
) -> bool
Expand description

Returns the ENTITY|OBJECT.fieldname text value in textp as utf-8. entity is the Dwg_Entity_ENTITY or Dwg_Object_OBJECT struct with the specific fields. The optional Dwg_DYNAPI_field *fp is filled with the field types from dynapi.c With DWG’s since r2007+ creates a fresh UTF-8 conversion from the UTF-16 wchar value (which needs to be free’d), with older DWG’s or with TV, TF or TFF returns the unconverted text value. Only valid for text fields. isnew is set to 1 if textp is freshly malloced (r2007+), otherwise 0