projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
work on value labels
[pspp]
/
rust
/
src
/
dictionary.rs
diff --git
a/rust/src/dictionary.rs
b/rust/src/dictionary.rs
index 042a294452a2e572bd4dc95ed8b890b77269a839..8d28ff329bceedca534bd59b852fef6f0d78b4d6 100644
(file)
--- a/
rust/src/dictionary.rs
+++ b/
rust/src/dictionary.rs
@@
-87,6
+87,14
@@
impl VarWidth {
_ => Err(()),
}
}
+
+ pub fn is_long_string(&self) -> bool {
+ if let Self::String(width) = self {
+ *width > 8
+ } else {
+ false
+ }
+ }
}
impl From<VarWidth> for VarType {