test_index_converter() — tailwindcss Function Reference
Architecture documentation for the test_index_converter() function in utf16.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 3fc05603_16be_e9c7_d377_418686dbcde0["test_index_converter()"] e3dc7dae_8cb5_88b3_3e47_bdb509bef87d["utf16.rs"] 3fc05603_16be_e9c7_d377_418686dbcde0 -->|defined in| e3dc7dae_8cb5_88b3_3e47_bdb509bef87d ca7a86b9_1431_6b15_137c_178b800f1d57["get()"] 3fc05603_16be_e9c7_d377_418686dbcde0 -->|calls| ca7a86b9_1431_6b15_137c_178b800f1d57 style 3fc05603_16be_e9c7_d377_418686dbcde0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/node/src/utf16.rs lines 55–93
fn test_index_converter() {
let mut converter = IndexConverter::new("Hello 🔥🥳 world!");
let map = HashMap::from([
// hello<space>
(0, 0),
(1, 1),
(2, 2),
(3, 3),
(4, 4),
(5, 5),
(6, 6),
// inside the 🔥
(7, 8),
(8, 8),
(9, 8),
(10, 8),
// inside the 🥳
(11, 10),
(12, 10),
(13, 10),
(14, 10),
// <space>world!
(15, 11),
(16, 12),
(17, 13),
(18, 14),
(19, 15),
(20, 16),
(21, 17),
// Past the end should return the last utf-16 character index
(22, 17),
(100, 17),
]);
for (idx_utf8, idx_utf16) in map {
assert_eq!(converter.get(idx_utf8), idx_utf16);
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_index_converter() do?
test_index_converter() is a function in the tailwindcss codebase, defined in crates/node/src/utf16.rs.
Where is test_index_converter() defined?
test_index_converter() is defined in crates/node/src/utf16.rs at line 55.
What does test_index_converter() call?
test_index_converter() calls 1 function(s): get.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free