!234 GetIcuVersion()接口返回短版本号

Merge pull request !234 from zhangdd_ewan/cherry-240507
This commit is contained in:
openharmony_ci 2024-05-16 08:09:01 +00:00 committed by Gitee
commit d6e13caa09
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
*/
#include "init_data.h"
#include <string.h>
#include <cstring>
#include <mutex>
namespace {
@ -38,7 +38,7 @@ void SetHwIcuDirectory( )
extern "C" const char* GetIcuVersion()
{
const char* icuVerion = U_ICU_VERSION;
const char* icuVerion = U_ICU_VERSION_SHORT;
return icuVerion;
}

View File

@ -24,11 +24,11 @@
*/
void SetHwIcuDirectory( );
#endif
/**
* get icu version
*/
extern "C" const char* GetIcuVersion();
extern "C" void SetOhosIcuDirectory();
#endif