work on value labels
[pspp] / rust / src / dictionary.rs
index 042a294452a2e572bd4dc95ed8b890b77269a839..8d28ff329bceedca534bd59b852fef6f0d78b4d6 100644 (file)
@@ -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 {