RH_C_FUNCTION const RHMONO_STRING* ON_wString_Get(ON_wString* pString) { const RHMONO_STRING* rc = NULL; if( pString ) { #if defined (_WIN32) rc = pString->Array(); #endif #if defined (__APPLE__) string_get_holder.Set(*pString); rc = string_get_holder.Array(); #endif #if defined(ON_COMPILER_ANDROIDNDK) string_get_holder.Set(*pString); rc = string_get_holder.Array(); #endif } return rc; }
RH_C_FUNCTION const RHMONO_STRING* ON_UserStringList_KeyValue(const ON_ClassArray<ON_UserString>* pList, int i, bool key) { const RHMONO_STRING* rc = NULL; if( pList && i>=0 && i<pList->Count() ) { if( key ) theKeyValueHolder.Set( (*pList)[i].m_key ); else theKeyValueHolder.Set( (*pList)[i].m_string_value ); rc = theKeyValueHolder.Array(); } return rc; }
RH_C_FUNCTION const RHMONO_STRING* ON_Object_GetUserString(const ON_Object* pObject, const RHMONO_STRING* _key) { const RHMONO_STRING* rc = NULL; if( pObject && _key ) { INPUTSTRINGCOERCE(key, _key); ON_wString s; if( pObject->GetUserString(key, s) ) { theGetUserString.Set(s); rc = theGetUserString.Array(); } } return rc; }