Home
last modified time | relevance | path

Searched refs:byteIndex (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ui_lite/frameworks/common/
H A Dtyped_text.cpp268 uint32_t byteIndex = GetByteIndexFromUTF8Id(text, beginUTF8Index); in GetTextWidth() local
271 while (byteIndex < length) { in GetTextWidth()
272 uint32_t letter = GetUTF8Next(text, byteIndex, byteIndex); in GetTextWidth()
352 uint32_t byteIndex = 0; in GetByteIndexFromUTF8Id() local
354 byteIndex += GetUTF8OneCharacterSize(&text[byteIndex]); in GetByteIndexFromUTF8Id()
357 return byteIndex; in GetByteIndexFromUTF8Id()
360 uint32_t TypedText::GetUTF8CharacterSize(const char* text, uint32_t byteIndex) in GetUTF8CharacterSize() argument
369 while ((i < byteIndex) && (text[i] != '\0')) { in GetUTF8CharacterSize()
H A Dtyped_text.h91 static uint32_t GetUTF8CharacterSize(const char* text, uint32_t byteIndex = UINT32_MAX);
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/
H A Dhci_def_supported_cmds.h25 #define GET_COMMAND_FLAG(cmds, byteIndex, bitIndex) ((cmds)[(byteIndex)] & 0x01 << (bitIndex)) argument
H A Dhci_def_feature.h25 #define GET_FEATURE_FLAG(feature, byteIndex, bitIndex) ((feature)[(byteIndex)] & 0x01 << (bitIndex)) argument
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dipv6_address.cpp203 uint32_t byteIndex = prefixLen / CHAR_BIT; in GetPrefixByAddr() local
205 memcpy_s(ipv6Prefix.s6_addr, sizeof(ipv6Prefix.s6_addr), &ipv6AddrBuf, byteIndex) != EOK) { in GetPrefixByAddr()
209 if ((bitOffset != 0) && (byteIndex < INET_ADDRSTRLEN)) { in GetPrefixByAddr()
210 ipv6Prefix.s6_addr[byteIndex] = ipv6AddrBuf.s6_addr[byteIndex] & (0xff00 >> bitOffset); in GetPrefixByAddr()
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_ipv6_client.cpp247 uint32_t byteIndex = prefixLen / CHAR_BIT; in GetIpv6Prefix() local
249 memcpy_s(ipv6Prefix.s6_addr, sizeof(ipv6Prefix.s6_addr), &ipv6AddrBuf, byteIndex) != EOK) { in GetIpv6Prefix()
253 if ((bitOffset != 0) && (byteIndex < INET_ADDRSTRLEN)) { in GetIpv6Prefix()
254 ipv6Prefix.s6_addr[byteIndex] = ipv6AddrBuf.s6_addr[byteIndex] & (0xff00 >> bitOffset); in GetIpv6Prefix()
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dnetmanager_base_common_utils.cpp185 uint32_t byteIndex = prefixLen / BIT_NUM_BYTE; in GetIpv6Prefix() local
187 memcpy_s(ipv6Prefix.s6_addr, sizeof(ipv6Prefix.s6_addr), &ipv6AddrBuf, byteIndex) != EOK) { in GetIpv6Prefix()
191 if ((bitOffset != 0) && (byteIndex < INET_ADDRSTRLEN)) { in GetIpv6Prefix()
192 ipv6Prefix.s6_addr[byteIndex] = ipv6AddrBuf.s6_addr[byteIndex] & (0xff00 >> bitOffset); in GetIpv6Prefix()