[librsvg: 4/26] NodeChars::is_empty() - new method
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/26] NodeChars::is_empty() - new method
- Date: Sun, 10 Nov 2019 20:17:02 +0000 (UTC)
commit 2c47d304853ad366d6b8aaecfdac661972ae7cb2
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Nov 7 11:41:33 2019 -0600
NodeChars::is_empty() - new method
rsvg_internals/src/text.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index e21aad91..d25b0762 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -499,6 +499,10 @@ impl NodeChars {
}
}
+ pub fn is_empty(&self) -> bool {
+ self.string.borrow().is_empty()
+ }
+
pub fn append(&self, s: &str) {
self.string.borrow_mut().push_str(s);
*self.space_normalized.borrow_mut() = None;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]