Crates.io | xcolabel |
lib.rs | xcolabel |
version | 0.2.0 |
source | src |
created_at | 2023-08-16 12:12:05.385586 |
updated_at | 2023-08-17 00:31:52.921398 |
description | Convert between column label to 0-based number |
homepage | https://github.com/yamaura/xcolabel |
repository | https://github.com/yamaura/xcolabel |
max_upload_size | |
id | 945747 |
size | 14,909 |
Convert between column label to 0-based number.
xcolabel converts between 0-based numbers and column labels of spreadsheet software. For example, "A" becomes 0. "AA" becomes 26. It also converts tuples of the form (row, column) into strings like "C2".
xcolabel is a pure Rust library. Everything except TryFromCellStr has been implemented.
use xcolabel::ToCellString;
assert_eq!((4, 2).to_cell_string(), "C5"); // value is 0-based (row, column)