xcolabel

Crates.ioxcolabel
lib.rsxcolabel
version0.2.0
sourcesrc
created_at2023-08-16 12:12:05.385586
updated_at2023-08-17 00:31:52.921398
descriptionConvert between column label to 0-based number
homepagehttps://github.com/yamaura/xcolabel
repositoryhttps://github.com/yamaura/xcolabel
max_upload_size
id945747
size14,909
Yuki Yamaura (yamaura)

documentation

README

xcolabel

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".

Status

xcolabel is a pure Rust library. Everything except TryFromCellStr has been implemented.

Examples

use xcolabel::ToCellString;

assert_eq!((4, 2).to_cell_string(), "C5"); // value is 0-based (row, column)
Commit count: 4

cargo fmt