Commit Graph

76 Commits (5c1d94de1b67353da7e2c348379c8a8509a9e66a)

Author SHA1 Message Date
Matthew Wild 886aa3c20a 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. 11 years ago
Waqas Hussain 6656c56b93 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. 11 years ago
Matthew Wild 552fdd0caf util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) 13 years ago
Kim Alvefur bd72dc3f88 util.stanza: Add stanza:find(), a light weight XPath-like method 13 years ago
Matthew Wild 3230dc4c0a util.stanza: :maptags(): Fixes to make loop more robust on item removal 13 years ago
Kim Alvefur 0f7cedcc1a util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44) 14 years ago
Kim Alvefur ae0fdd43a4 util.stanza: Make stanza:childtags() behave like :get_child() 14 years ago
Matthew Wild 811e44ec5e util.stanza: Remove unused function imports 14 years ago
Matthew Wild d0f4bbd2db util.stanza: Remove unused __add metamethod 14 years ago
Matthew Wild 03db98294d util.stanza: Whitespace fix after merge (complicated) 15 years ago
Matthew Wild a9c25722e1 util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) 15 years ago
Matthew Wild 297144b6a7 util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible) 15 years ago
Waqas Hussain 78b3e4e756 util.stanza: Rewrite clone() to be more optimized. 15 years ago
Waqas Hussain d833e47d79 util.stanza: Rewrite clone() to be more optimized. 15 years ago
Waqas Hussain bbb4eabf46 util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;) 15 years ago
Matthew Wild 22bd191f86 util.stanza: Add get_child_text() method to get the text of the specified child element (get_child() + get_text() rolled into one step) 15 years ago
Matthew Wild 9d5e9921e6 util.stanza: Clean up matching_tags() and replace :childtags() with it 15 years ago
Kim Alvefur 8f9442b31c util.stanza: Iterate on childtags instead of all childs. 15 years ago
Matthew Wild 81b877341f util.stanza: Change get_error() to return nil rather than '' for no text 15 years ago
Kim Alvefur fdc0474f9b util.stanza: Iterate on childtags instead of all childs. 15 years ago
Matthew Wild 4776abee1d util.stanza: Change get_error() to return nil rather than '' for no text 15 years ago
Waqas Hussain 539b221189 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. 15 years ago
Waqas Hussain 076aadf990 util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message(). 15 years ago
Matthew Wild e3718ed22e util.stanza: stanza:matched_children() -> stanza:matching_tags() 16 years ago
Matthew Wild f5fcc46905 util.stanza: Add stanza:maptags() to apply a function over child tags (return nil to remove tag from stanza) 16 years ago
Matthew Wild a69205c3b9 util.stanza: Optimisation, remove useless if...then in stanza:children() iterator 16 years ago
Matthew Wild aa509f9fce util.stanza: Add stanza:matched_children(name, xmlns) [name suggestions welcome] 16 years ago
Waqas Hussain bc55b5ad8f util.stanza: Fixed some more nil global accesses. 16 years ago
Waqas Hussain a015c6a048 util.stanza: Fixed a nil global access. 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Waqas Hussain 675aab41f9 util.stanza: Fixed nil global accesses. 16 years ago
Matthew Wild e1a8c86970 util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text> 16 years ago
Matthew Wild 35d65ca55b util.stanza: Add stanza:get_error() to return type, condition and text of a stanza error 16 years ago
Matthew Wild 2545e17aeb util.stanza: Trailing whitespace 16 years ago
Matthew Wild 70c975bfe0 util.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns 16 years ago
Matthew Wild 9ed7624f75 util.stanza: stanza.error_reply(): Fix to put the correct namespace on <text> 16 years ago
Matthew Wild fe45368b05 util.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns 16 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 16 years ago
Matthew Wild 555d09e324 util.stanza: Don't add xmlns to tags when serializing if same as the parent tag's xmlns. Should hopefully shut up Gajim once and for all :) 16 years ago
Matthew Wild 7c81eebb01 util.stanza: Remove silly dependency on util.logger 16 years ago
Matthew Wild 2f726a9d3b util.stanza: Soften dependency on util.termcolours 16 years ago
Matthew Wild 7b3fe9ce14 util.stanza: Make xml_escape publicly accessible 16 years ago
Matthew Wild b1f5f214b1 util.stanza: Add __type to metatable 16 years ago
Matthew Wild 118883d655 Remove version number from copyright headers 17 years ago
Matthew Wild 825d03cc43 util.stanza: Convert spaces to tabs 17 years ago
Waqas Hussain 852c7a62b1 util.stanza: Serializer optimizations, and nicer output for empty elements 17 years ago
Matthew Wild 49f2cc3baa util.stanza: Add stanza:get_text() to retrieve all child text nodes #api 17 years ago
Waqas Hussain 1ce4a34f68 util.stanza: Rewrote stanza_mt.__tostring. 20-30% faster stanza serialization. - #optimization 17 years ago
Waqas Hussain 3a8c1a3f6c util.stanza: Remove numeric attributes while deserializing 17 years ago
Waqas Hussain fa8aeaf04f util.stanza: Omit unused clone parameter from error_reply() 17 years ago