Searched refs:uriLen (Results 1 – 4 of 4) sorted by relevance
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
D | js_app_context.cpp | 297 size_t uriLen = strlen(uri); in SetCurrentUri() local 298 if ((uriLen > 0) && (uriLen < PATH_LENGTH_MAX)) { in SetCurrentUri() 299 currentUri_ = static_cast<char*>(ace_malloc(uriLen + 1)); in SetCurrentUri() 304 if (memcpy_s(currentUri_, uriLen, uri, uriLen) != 0) { in SetCurrentUri() 309 currentUri_[uriLen] = '\0'; in SetCurrentUri()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/ |
D | js_page_state_machine.cpp | 93 size_t uriLen = strlen(uri); in GenerateJsPagePath() local 94 if (uriLen >= PATH_LENGTH_MAX) { in GenerateJsPagePath() 97 size_t len = uriLen; in GenerateJsPagePath() 104 if (len < uriLen) { in GenerateJsPagePath() 105 len = uriLen; in GenerateJsPagePath() 108 if ((uriLen == 1) && (uri[0] == PATH_DEFAULT[0])) { in GenerateJsPagePath() 123 if ((uriLen == 1) && (uri[0] == PATH_DEFAULT[0])) { in GenerateJsPagePath()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/router/ |
D | js_router.cpp | 46 size_t uriLen = 0; in ParseUri() local 47 napi_get_value_string_utf8(env, uriNApi, nullptr, 0, &uriLen); in ParseUri() 48 std::unique_ptr<char[]> uri = std::make_unique<char[]>(uriLen + 1); in ParseUri() 49 napi_get_value_string_utf8(env, uriNApi, uri.get(), uriLen + 1, &uriLen); in ParseUri()
|
/foundation/communication/nfc/frameworks/js/napi/tag/ |
D | nfc_napi_tag.cpp | 125 uint32_t uriLen = NfcSdkCommon::GetHexStrBytesLen(hexUri); in RegisterEnumRtdType() local 126 napi_create_array_with_length(env, uriLen, &rtdUri); in RegisterEnumRtdType() 127 for (uint32_t i = 0; i < uriLen; i++) { in RegisterEnumRtdType()
|