String building tip on the native application development
String building tip on the native application development
BY 03 Jun 2015Native Application Development
String building tip on the native application development
1. Scenario description
In many cases, developer need to build a string dynamically, such as, construct an image/icon full path, concatenate two sub-strings (str1 + str2), replace a sub-string, etc. In c language, it’s not as convenient as in those advantage languages (Java, C#, Python).
2. Solution
In traditional way, developer will use the standard c char manipulate functions (string.h, stdio.h).
String building tip on the native application development
String building tip on the native application development
1. Scenario description
In many cases, developer need to build a string dynamically, such as, construct an image/icon full path, concatenate two sub-strings (str1 + str2), replace a sub-string, etc. In c language, it’s not as convenient as in those advantage languages (Java, C#, Python).
2. Solution
In traditional way, developer will use the standard c char manipulate functions (string.h, stdio.h).
Example:
In Tizen, developer can use another more powerful string API, the eina_strbuf.h.
Developer can find more details about this API from header file and function description document in Tizen DEVELOPERS site (https://developer.tizen.org/documentation/guides/native-application/ui/eina/data-types)
Hope this tip give help for your task…Good luck!
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio