Lines Matching +full:0 +full:x2030
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
78 if (!CanBeNegative && SignedNum < 0) in checkSignedNumberFits()
114 0x20ac, 0x0081, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, in cp1252ToUnicode()
115 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0x008d, 0x017d, 0x008f, in cp1252ToUnicode()
116 0x0090, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, in cp1252ToUnicode()
117 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0x009d, 0x017e, 0x0178, in cp1252ToUnicode()
119 if (C >= 0x80 && C <= 0x9F) in cp1252ToUnicode()
120 return Map80[C - 0x80]; in cp1252ToUnicode()
124 // Describes a way to handle '\0' characters when processing the string.
127 // titles), string is (predictably) truncated after first 0-byte.
129 // '\0\0' at the end of the string, and then stripping the string
130 // before the first '\0\0' occurrence.
131 // Finally, when handling strings in user-defined resources, 0-bytes
135 UserResource, // Don't terminate string on '\0'.
136 CutAtNull, // Terminate string on '\0'.
137 CutAtDoubleNull // Terminate string on '\0\0'; strip final '\0'.
161 if ((unsigned char)C > 0x7F) in processString()
171 assert(Ch <= 0x7F && "We didn't allow identifiers to be non-ASCII"); in processString()
178 size_t Pos = 0; in processString()
185 if (Char > 0xFF) in processString()
198 if (Char > 0xFF) in processString()
202 if (Char >= 0x80) in processString()
209 if (Char > 0x7F) in processString()
239 UTF16 ReadInt = 0; in processString()
242 // 0xFF invoke UB. in processString()
253 while (RemainingChars && Pos < Chars.size() && Chars[Pos] < 0x80) { in processString()
261 ReadInt |= Digit - '0'; in processString()
272 if (TypeChar >= '0' && TypeChar < '8') { in processString()
274 UTF16 ReadInt = TypeChar - '0'; in processString()
277 while (RemainingChars && Pos < Chars.size() && Chars[Pos] >= '0' && in processString()
280 ReadInt |= Chars[Pos] - '0'; in processString()
343 for (size_t Pos = 0; Pos < Result.size(); ++Pos) in processString()
344 if (Result[Pos] == '\0') in processString()
349 for (size_t Pos = 0; Pos + 1 < Result.size(); ++Pos) in processString()
350 if (Result[Pos] == '\0' && Result[Pos + 1] == '\0') in processString()
352 if (Result.size() > 0 && Result.back() == '\0') in processString()
378 writeInt<uint16_t>(0); in writeCString()
390 writeInt<uint16_t>(0xFFFF); in writeIntOrString()
415 assert(Length > 0); in padStream()
419 for (uint64_t i = 0; i < Pad; ++i) in padStream()
420 writeInt<uint8_t>(0); in padStream()
562 object::WinResHeaderPrefix HeaderPrefix{ulittle32_t(0U), ulittle32_t(0U)}; in writeResource()
577 ulittle32_t(0), // DataVersion; seems to always be 0 in writeResource()
614 } Entry{ulittle16_t(0), ulittle16_t(0), ulittle16_t(0), 0}; in writeSingleAccelerator()
622 Entry.Flags |= 0x80; in writeSingleAccelerator()
656 if (Str.size() == 0 || Str.size() > 2) in writeSingleAccelerator()
660 if (Str[0] == '^') { in writeSingleAccelerator()
684 uint8_t EventCh = Str[0]; in writeSingleAccelerator()
689 if (EventCh > 0x7F) in writeSingleAccelerator()
701 size_t AcceleratorId = 0; in writeAcceleratorsBody()
725 if (Buffer.size() < BITMAPFILEHEADER_size || Buffer[0] != 'B' || in writeBitmapBody()
792 ulittle16_t Reserved; // Always 0.
908 if (Header->Reserved != 0) in visitIconOrCursorResource()
909 return createError("Incorrect icon/cursor Reserved field; should be 0."); in visitIconOrCursorResource()
921 for (size_t ID = 0; ID < NumItems; ++ID) { in visitIconOrCursorResource()
930 for (size_t ID = 0; ID < NumItems; ++ID) { in visitIconOrCursorResource()
942 for (size_t ID = 0; ID < NumItems; ++ID) { in visitIconOrCursorResource()
1000 CtlStyle |= Ctl.Style.value_or(RCInt(0)); in writeSingleDialogControl()
1001 uint32_t CtlExtStyle = Ctl.ExtStyle.value_or(0); in writeSingleDialogControl()
1015 } Prefix{ulittle32_t(Ctl.HelpID.value_or(0)), ulittle32_t(CtlExtStyle), in writeSingleDialogControl()
1050 // Window class - either 0xFFFF + 16-bit integer or a string. in writeSingleDialogControl()
1053 // Element caption/reference ID. ID is preceded by 0xFFFF. in writeSingleDialogControl()
1058 writeInt<uint16_t>(0); in writeSingleDialogControl()
1067 const uint32_t DefaultStyle = 0x80880000; in writeDialogBody()
1068 const uint32_t StyleFontFlag = 0x40; in writeDialogBody()
1069 const uint32_t StyleCaptionFlag = 0x00C00000; in writeDialogBody()
1082 const uint16_t DialogExMagic = 0xFFFF; in writeDialogBody()
1083 uint32_t ExStyle = ObjectData.ExStyle.value_or(0); in writeDialogBody()
1087 // We cannot let the higher word of DefaultStyle be equal to 0xFFFF. in writeDialogBody()
1091 // 1 DIALOG 0, 0, 0, 65432 in writeDialogBody()
1092 // STYLE 0xFFFF0001 {} in writeDialogBody()
1096 " equal to 0xFFFF"); in writeDialogBody()
1146 // Window title or a single word equal to 0. in writeDialogBody()
1204 writeInt<uint32_t>(0); in writeMenuDefinition()
1246 // Last element receives an additional 0x80 flag. in writeMenuDefinitionList()
1247 const uint16_t LastElementFlag = 0x0080; in writeMenuDefinitionList()
1260 // Last element receives an additional 0x80 flag. in writeMenuExDefinitionList()
1261 const uint16_t LastElementFlag = 0x0080; in writeMenuExDefinitionList()
1271 // At first, MENUHEADER structure. In fact, these are two WORDs equal to 0. in writeMenuBody()
1273 writeInt<uint32_t>(0); in writeMenuBody()
1284 writeInt<uint32_t>(0); in writeMenuExBody()
1324 for (size_t ID = 0; ID < Res->Bundle.Data.size(); ++ID) { in writeStringTableBundleBody()
1335 Data.push_back('\0'); in writeStringTableBundleBody()
1409 LengthLoc = writeInt<uint16_t>(0); in writeVersionInfoBlock()
1410 writeInt<uint16_t>(0); in writeVersionInfoBlock()
1447 // Moreover, '\0' character is written after the last string, and between in writeVersionInfoValue()
1463 auto LengthLoc = writeInt<uint16_t>(0); in writeVersionInfoValue()
1464 auto ValLengthLoc = writeInt<uint16_t>(0); in writeVersionInfoValue()
1470 for (size_t Id = 0; Id < Val.Values.size(); ++Id) { in writeVersionInfoValue()
1487 assert(ValueLength % 2 == 0); in writeVersionInfoValue()
1510 ulittle32_t Signature = ulittle32_t(0xFEEF04BD); in writeVersionInfoBody()
1511 ulittle32_t StructVersion = ulittle32_t(0x10000); in writeVersionInfoBody()
1523 // MS implementation seems to always set these fields to 0. in writeVersionInfoBody()
1524 ulittle32_t FileDateMS = ulittle32_t(0); in writeVersionInfoBody()
1525 ulittle32_t FileDateLS = ulittle32_t(0); in writeVersionInfoBody()
1529 auto LengthLoc = writeInt<uint16_t>(0); in writeVersionInfoBody()
1531 writeInt<uint16_t>(0); in writeVersionInfoBody()
1537 static const SmallVector<uint32_t, 4> DefaultOut{0, 0, 0, 0}; in writeVersionInfoBody()
1546 FixedInfo.FileVersionMS = (FileVer[0] << 16) | FileVer[1]; in writeVersionInfoBody()
1552 FixedInfo.ProductVersionMS = (ProdVer[0] << 16) | ProdVer[1]; in writeVersionInfoBody()
1555 FixedInfo.FileFlagsMask = GetField(VersionInfoFixed::FtFileFlagsMask)[0]; in writeVersionInfoBody()
1556 FixedInfo.FileFlags = GetField(VersionInfoFixed::FtFileFlags)[0]; in writeVersionInfoBody()
1557 FixedInfo.FileOS = GetField(VersionInfoFixed::FtFileOS)[0]; in writeVersionInfoBody()
1558 FixedInfo.FileType = GetField(VersionInfoFixed::FtFileType)[0]; in writeVersionInfoBody()
1559 FixedInfo.FileSubtype = GetField(VersionInfoFixed::FtFileSubtype)[0]; in writeVersionInfoBody()
1578 // 0. The file path is absolute or has a root directory, so we shouldn't in loadFile()