Log

util/stanza.lua @ 7159:f11d6c9d1c1f

description author age
util.stanza, util.xml, util.xmppstream: Add support for tracking defined namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator) Matthew Wild Tue, 08 Dec 2015 23:15:42 +0000
util.stanza: Export xml_escape (missed during removal of module() calls) Kim Alvefur Thu, 03 Sep 2015 23:39:00 +0200
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur Sat, 21 Feb 2015 10:36:37 +0100
Merge 0.9->0.10 Kim Alvefur Sun, 26 Oct 2014 20:57:06 +0100
Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either. 0.9.7 Matthew Wild Fri, 24 Oct 2014 23:20:06 +0100
Merge 0.9->0.10 Waqas Hussain Wed, 08 Oct 2014 18:42:33 -0400
util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transforms into \n otherwise, and \r\n\t in attributes transforms into spaces. Waqas Hussain Wed, 08 Oct 2014 15:56:11 -0400
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) Matthew Wild Fri, 05 Apr 2013 19:59:48 +0100
util.stanza: Add stanza:find(), a light weight XPath-like method Kim Alvefur Thu, 04 Apr 2013 20:05:35 +0200
util.stanza: :maptags(): Fixes to make loop more robust on item removal Matthew Wild Wed, 03 Apr 2013 13:38:27 +0100
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44) Kim Alvefur Tue, 21 Aug 2012 15:33:07 +0200
util.stanza: Make stanza:childtags() behave like :get_child() Kim Alvefur Thu, 05 Jul 2012 17:58:47 +0200
util.stanza: Remove unused function imports Matthew Wild Sat, 28 Apr 2012 02:38:56 +0100
util.stanza: Remove unused __add metamethod Matthew Wild Wed, 21 Dec 2011 07:58:22 +0000
Merge 0.8->trunk Matthew Wild Thu, 24 Feb 2011 02:04:56 +0000
util.stanza: Whitespace fix after merge (complicated) Matthew Wild Thu, 24 Feb 2011 02:04:38 +0000
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) Matthew Wild Tue, 22 Feb 2011 07:37:52 +0000
util.stanza: Rewrite clone() to be more optimized. Waqas Hussain Sun, 20 Feb 2011 19:16:56 +0500
util.stanza: Clean up matching_tags() and replace :childtags() with it Matthew Wild Sat, 19 Feb 2011 02:31:06 +0000
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) Matthew Wild Tue, 22 Feb 2011 07:37:52 +0000
util.stanza: Rewrite clone() to be more optimized. Waqas Hussain Sun, 20 Feb 2011 19:16:56 +0500
util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;) Waqas Hussain Thu, 03 Feb 2011 13:13:49 +0500
util.stanza: Add get_child_text() method to get the text of the specified child element (get_child() + get_text() rolled into one step) Matthew Wild Mon, 31 Jan 2011 13:05:49 +0000
util.stanza: Iterate on childtags instead of all childs. Kim Alvefur Fri, 17 Dec 2010 17:28:05 +0100
util.stanza: Change get_error() to return nil rather than '' for no text Matthew Wild Sat, 11 Dec 2010 22:34:29 +0000
util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building. Waqas Hussain Fri, 26 Nov 2010 05:23:37 +0500
util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message(). Waqas Hussain Tue, 21 Sep 2010 17:24:25 +0500
util.stanza: stanza:matched_children() -> stanza:matching_tags() Matthew Wild Mon, 30 Aug 2010 04:55:12 +0100
util.stanza: Add stanza:maptags() to apply a function over child tags (return nil to remove tag from stanza) Matthew Wild Mon, 30 Aug 2010 04:53:41 +0100