Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Pisarchik <pisarchik@mapswithme.com>2014-04-08 11:26:24 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:14:32 +0300
commit32c5733e46590d47150cbddbd0ffc485502bccca (patch)
treec1c95e4c751227ea3b6bcd32ec69e75973077511 /platform/platform_tizen.cpp
parent31051431ef7bf717a4a4fd52c1b827b13816939f (diff)
[Tizen] Moved FromTizenString to separate hpp
Diffstat (limited to 'platform/platform_tizen.cpp')
-rw-r--r--platform/platform_tizen.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/platform/platform_tizen.cpp b/platform/platform_tizen.cpp
index 3538dc6fbe..47da63179d 100644
--- a/platform/platform_tizen.cpp
+++ b/platform/platform_tizen.cpp
@@ -2,7 +2,6 @@
#include "platform.hpp"
#include <FAppApp.h>
-#include <FBaseUtilStringUtil.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wignored-qualifiers"
@@ -21,36 +20,7 @@
#include <sys/stat.h>
#include <sys/types.h>
-string FromTizenString(Tizen::Base::String const & str_tizen)
-{
- string utf8Str;
- if (str_tizen.GetLength() == 0)
- return utf8Str;
-// str_tizen.GetPointer();
- Tizen::Base::ByteBuffer* pBuffer = Tizen::Base::Utility::StringUtil::StringToUtf8N(str_tizen);
- if (pBuffer != null)
- {
- int byteCount = pBuffer->GetLimit();
- char* chPtrBuf = new char[byteCount + 1];
- if (chPtrBuf != null) {
- pBuffer->GetArray((byte*) chPtrBuf, 0, byteCount);
- utf8Str.assign(chPtrBuf, byteCount - 1);
- delete[] chPtrBuf;
- }
- if (pBuffer != null)
- delete pBuffer;
- }
- return utf8Str;
-}
-
-
-/// @return directory where binary resides, including slash at the end
-static bool GetBinaryFolder(string & outPath)
-{
- Tizen::App::App * pApp = Tizen::App::App::GetInstance();
- outPath = FromTizenString(pApp->GetAppRootPath());
- return true;
-}
+#include "tizen_string_utils.hpp"
Platform::Platform()
{