allow non-16x16 rooms
This commit is contained in:
22
src/lib.rs
22
src/lib.rs
@@ -152,6 +152,28 @@ fn is_string_numeric(str: String) -> bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
pub trait Quote {
|
||||
fn quote(&self) -> String;
|
||||
}
|
||||
|
||||
impl Quote for String {
|
||||
#[inline]
|
||||
fn quote(&self) -> String {
|
||||
format!("\"\"\"\n{}\n\"\"\"", self).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Unquote {
|
||||
fn unquote(&self) -> String;
|
||||
}
|
||||
|
||||
impl Unquote for String {
|
||||
#[inline]
|
||||
fn unquote(&self) -> String {
|
||||
self.trim_matches('\"').trim_matches('\n').to_string()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::{from_base36, ToBase36, optional_data_line, mock, segments_from_string};
|
||||
|
||||
Reference in New Issue
Block a user