Home
last modified time | relevance | path

Searched refs:configStr (Results 1 – 5 of 5) sorted by relevance

/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
Dohos_resource_adapter_test.cpp188 char *configStr = static_cast<char*>(malloc(MODULE_NAME_SIZE)); variable
189 EXPECT_NE(configStr, nullptr);
190 (void)memset_s(configStr, MODULE_NAME_SIZE, 0, MODULE_NAME_SIZE);
191 result = adapterImpl.GetModuleName(configStr, MODULE_NAME_SIZE);
193 if (memcpy_s(configStr, MODULE_NAME_SIZE, "\"moduleName\"", sizeof("\"moduleName\"")) != EOK) {
196 result = adapterImpl.GetModuleName(configStr, MODULE_NAME_SIZE);
198 uint32_t len = strlen(configStr);
199 if (memcpy_s(configStr + len, MODULE_NAME_SIZE - len, "\"", sizeof("\"")) != EOK) {
202 result = adapterImpl.GetModuleName(configStr, MODULE_NAME_SIZE);
204 (void)memset_s(configStr, MODULE_NAME_SIZE, 0, MODULE_NAME_SIZE);
[all …]
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
Dohos_resource_adapter_impl.cpp223 std::string OhosResourceAdapterImpl::GetModuleName(const char *configStr, size_t len) in GetModuleName() argument
225 if (configStr == nullptr) { in GetModuleName()
228 std::string config(configStr, len); in GetModuleName()
243 std::string retStr = std::string(configStr + start + 1, end - start - 1); in GetModuleName()
/base/web/webview/ohos_adapter/ohos_resource_adapter/include/
Dohos_resource_adapter_impl.h73 static std::string GetModuleName(const char *configStr, size_t len);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp105 std::string GetModuleName(const char *configStr) in GetModuleName() argument
107 std::string config(configStr); in GetModuleName()
122 std::string retStr = std::string(configStr + start + 1, end - start - 1); in GetModuleName()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp102 std::string GetModuleName(const char *configStr, size_t len) in GetModuleName() argument
104 if (configStr == nullptr) { in GetModuleName()
107 std::string config(configStr, len); in GetModuleName()
122 std::string retStr = std::string(configStr + start + 1, end - start - 1); in GetModuleName()