14a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/*---------------------------------------------------------------------------* 24a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * LStringImpl.h * 34a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * * 44a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Copyright 2007, 2008 Nuance Communciations, Inc. * 54a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * * 64a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the 'License'); * 74a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * you may not use this file except in compliance with the License. * 84a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * * 94a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * You may obtain a copy of the License at * 104a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * http://www.apache.org/licenses/LICENSE-2.0 * 114a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * * 124a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Unless required by applicable law or agreed to in writing, software * 134a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * distributed under the License is distributed on an 'AS IS' BASIS, * 144a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 154a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * See the License for the specific language governing permissions and * 164a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * limitations under the License. * 174a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * * 184a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project *---------------------------------------------------------------------------*/ 194a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 204a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#ifndef __LSTRINGIMPL_H 214a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#define __LSTRINGIMPL_H 224a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 234a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 244a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 254a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#include "ESR_ReturnCode.h" 264a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#include "ESR_SharedPrefix.h" 274a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#include "ptypes.h" 284a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 294a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/** 304a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * LString implementation. 314a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 324a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Projecttypedef struct LStringImpl_t 334a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project{ 344a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project /** 354a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Interface functions that must be implemented. 364a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 374a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project LString Interface; 384a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project /** 394a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Underlying string value. 404a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 414a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project LCHAR* value; 424a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project /** 434a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Underlying string size. 444a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 454a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project size_t size; 464a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project} 474a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source ProjectLStringImpl; 484a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 494a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 504a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/** 514a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Default implementation. 524a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 534a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source ProjectESR_SHARED_API ESR_ReturnCode LString_Append(LString* self, const LCHAR* value); 544a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/** 554a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Default implementation. 564a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 574a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source ProjectESR_SHARED_API ESR_ReturnCode LString_Reset(LString* self); 584a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/** 594a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Default implementation. 604a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 614a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source ProjectESR_SHARED_API ESR_ReturnCode LString_ToLCHAR(LString* self, LCHAR** result); 624a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project/** 634a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project * Default implementation. 644a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project */ 654a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source ProjectESR_SHARED_API ESR_ReturnCode LString_Destroy(LString* self); 664a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 674a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project 684a68b3365c8c50aa93505e99ead2565ab73dcdb0The Android Open Source Project#endif /* __LSTRINGIMPL_H */ 69