Lines Matching refs:uint16_t

30 static constexpr uint16_t VS_PLATFORM_ID = 0;
31 static constexpr uint16_t VS_ENCODING_ID = 5;
38 size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16()
45 return writeU16(static_cast<uint16_t>(sx), out, offset); in writeI16()
66 static std::vector<uint8_t> buildCmapFormat4Table(const std::vector<uint16_t>& ranges) { in buildCmapFormat4Table()
67 uint16_t segmentCount = ranges.size() / 2 + 1 /* +1 for end marker */; in buildCmapFormat4Table()
73 const size_t finalLength = sizeof(uint16_t) * numOfUint16; in buildCmapFormat4Table()
81 const uint16_t searchRange = 2 * (1 << static_cast<int>(floor(log2(segmentCount)))); in buildCmapFormat4Table()
89 size_t startCountHead = head + segmentCount * sizeof(uint16_t) + 2 /* padding */; in buildCmapFormat4Table()
90 size_t idDeltaHead = startCountHead + segmentCount * sizeof(uint16_t); in buildCmapFormat4Table()
91 size_t idRangeOffsetHead = idDeltaHead + segmentCount * sizeof(uint16_t); in buildCmapFormat4Table()
94 const uint16_t begin = ranges[i * 2]; in buildCmapFormat4Table()
95 const uint16_t end = ranges[i * 2 + 1]; in buildCmapFormat4Table()
196 const size_t headerLength = sizeof(uint16_t) /* format */ + sizeof(uint32_t) /* length */ + in buildCmapFormat14Table()
244 void appendTable(uint16_t platformId, uint16_t encodingId, const std::vector<uint8_t>& table) { in appendTable()
255 static std::vector<uint8_t> buildSingleFormat4Cmap(uint16_t platformId, uint16_t encodingId, in buildSingleFormat4Cmap()
256 const std::vector<uint16_t>& ranges) { in buildSingleFormat4Cmap()
262 static std::vector<uint8_t> buildSingleFormat12Cmap(uint16_t platformId, uint16_t encodingId, in buildSingleFormat12Cmap()
270 void appendEncodingTable(uint16_t platformId, uint16_t encodingId, uint32_t offset) { in appendEncodingTable()
292 CmapBuilder::buildSingleFormat4Cmap(0, 0, std::vector<uint16_t>({'a', 'a'})); in TEST()
302 CmapBuilder::buildSingleFormat4Cmap(0, 0, std::vector<uint16_t>({'a', 'a'})); in TEST()
312 CmapBuilder::buildSingleFormat4Cmap(0, 0, std::vector<uint16_t>({'a', 'a'})); in TEST()
322 0, 0, std::vector<uint16_t>({'b', 'b', 'a', 'a'})); in TEST()
331 0, 0, std::vector<uint16_t>({'a', 'a', 'c', 'c', 'b', 'b'})); in TEST()
343 uint16_t platformId; in TEST()
344 uint16_t encodingId; in TEST()
354 testCase.platformId, testCase.encodingId, std::vector<uint16_t>({'a', 'a'})); in TEST()
367 uint16_t platformId; in TEST()
368 uint16_t encodingId; in TEST()
417 uint16_t platformId; in TEST()
418 uint16_t encodingId; in TEST()
446 testCase.platformId, testCase.encodingId, std::vector<uint16_t>({'a', 'a'})); in TEST()
457 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST()
470 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST()
482 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST()
496 buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b', 'a', 'a'})); in TEST()
509 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'b', 'b', 'b'})); in TEST()
593 buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST()
594 std::vector<uint8_t> format4 = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST()
602 uint16_t platformId; in TEST()
603 uint16_t encodingId; in TEST()
626 uint16_t platformId; in TEST()
627 uint16_t encodingId; in TEST()
648 std::vector<uint8_t> validTable = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST()
653 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST()
667 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST()
681 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST()
759 const uint16_t vs15Index = getVsIndex(0xFE0E); in TEST()
765 const uint16_t vs16Index = getVsIndex(0xFE0F); in TEST()
771 const uint16_t vs17Index = getVsIndex(0xE0100); in TEST()
807 const uint16_t vs15Index = getVsIndex(0xFE0E); in TEST()
816 const uint16_t vs16Index = getVsIndex(0xFE0F); in TEST()
825 const uint16_t vs17Index = getVsIndex(0xE0100); in TEST()
833 const uint16_t vs18Index = getVsIndex(0xE0101); in TEST()
841 const uint16_t vs19Index = getVsIndex(0xE0102); in TEST()
853 const uint16_t vs20Index = getVsIndex(0xE0103); in TEST()
1119 const uint16_t vs16Index = getVsIndex(0xFE0F); in TEST()
1125 const uint16_t vs15Index = getVsIndex(0xFE0E); in TEST()
1142 const uint16_t vs16Index = getVsIndex(0xFE0F); in TEST()
1148 const uint16_t vs15Index = getVsIndex(0xFE0E); in TEST()
1164 const uint16_t vs16Index = getVsIndex(0xFE0F); in TEST()
1188 const uint16_t vsIndex = getVsIndex(0xFE0F); in TEST()
1211 const uint16_t vsIndex = getVsIndex(0xFE0F); in TEST()