summaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
Commit message (Expand)AuthorAgeFilesLines
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Add some stuff to change how we process a token sepeperated stream•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7801 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-15/+13
* Fix for irc::sepstream for when there are multiple seperators in a row, do no...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7799 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-0/+5
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+619
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-619/+1
* We know this worked... i think.•••std::string::reserve might not work the same as this. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7420 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-021-6/+5
* std::string does not need a null terminator..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7419 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-07-021-2/+1
* Fixed fencepost•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7316 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-141-1/+1
* Fixes for tokenization oddness with metadata, and weird behaviour of std::ist...•••Use irc::tokenstream instead and add some overridden methods to it. This is smarter as it reuses code and allows us to format metadata the same way we format irc data. NOTE: If you run any old servers alongside new servers (this revision) you might see spurious colons on the start of reasons for svsholds, cbans and filters. These can safely be ignored) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7283 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-131-0/+24
* Change some = "" to clear() and some == "" to .empty()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-091-3/+3
* Visual studio's ability to translate tabs to four spaces as default frustrate...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-191-5/+5
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-58/+18
* Add trim() to hashcomp to trail leading and traling spaces from std::strings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6809 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-04-181-0/+11
* This needs some general QA-ing. Add support to new parser (introduced in 1.1)...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6731 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-021-4/+7
* Fix the operator== for irc::string -> std::string to be const&, the lack of c...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6643 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-101-2/+2
* Fixes and optimizations•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6612 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-251-4/+4
* Add max line length value to modestacker, so that it can clamp the max length...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6609 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-251-2/+20
* Added sepstream::GetRemaining()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6608 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-02-221-0/+5
* Ident fixes,•••removal of some old craq we dont use. cgiirc optimizations and tidyups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6541 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-071-23/+0
* Fixed (rewrote) m_http_client's URL parsing, it is now more flexible and.. ac...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6416 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-01-201-0/+5
* Make irc::spacify take 'const char*' instead of 'char*'•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6005 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2006-12-161-1/+1
* Still more massive commit fun. Headers in include/ still to be done, else tha...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-1/+0
* Jesus, look who's the commit whore today. More header updates, and removal of...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-8/+3
* Change m_watch to use hash_map rather than map, because of the large number o...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5979 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-131-0/+8
* irc::string assign(std::string&)•••std::string assign(irc::string&) soooo: irc::string foo = assign(my_std_string); :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5956 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-111-0/+10
* Fix case insensitive compare (operator ==) between irc::string and std::strin...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5925 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2006-12-111-2/+2
* I don't know if anything actually uses this, but irc::hex is now *much* more ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5829 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2006-12-021-4/+9
* Fix a major whoopsie in that class i just added. It must be derived using vir...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5762 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-181-6/+4
* Reduce size of max number of bytes in a bitfield from a 4 or 8 byte field to ...•••This still allows storage of 8*255 bits, which is MORE than enough (for the interested, its 2040 bits) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5761 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-181-3/+8
* Remove some debug, add some comments, throw exception in Get() when passed an...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5759 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-171-3/+15
* Fix this so it works, passes test case. Provide a method to query for a bit a...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5758 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-171-2/+18
* Add irc::dynamicbitmask class. Feel free to take a look and offer suggestions...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5757 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-171-0/+95
* Allow checking of overlapped ports. A bit of sensible thought prevents this f...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-111-2/+38
* dont use local vars and lose state•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5692 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-111-2/+2
* Handle out of range port numbers without stopping parsing the whole set•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-111-1/+2
* Add irc::portparser, a class to parse port ranges in the form "6660,6661,6662...•••Needs testing, watch next few commits. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5690 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-111-0/+50
* Tweak hash generation to make it faster•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5545 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-261-2/+2
* More stringently fit the RFC1459 BNF diagrams•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5528 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-0/+5
* New helper class irc::stringjoiner - it pwns you.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5403 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-031-0/+27
* Seems to work now•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5400 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-021-2/+3
* Add more features to modestacker so that we can stack +, -, and parameterless...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5391 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-021-1/+17
* More efficient modestacker•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5390 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-021-5/+5
* modestacker class, stacks modes and returns a string list of up to MAXMODES m...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5389 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-021-0/+28
* Change type to size_t so that 64 bit platforms dont whine about data loss whe...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5303 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-191-1/+1
* Adapt to use std::string::const_iterator•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5302 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-191-2/+2
* Use ++x not x++, to more closely match what stl does•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5299 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-191-1/+1
* ULTRA FAST HASH FUNCTION :p•••I went and looked how hash_fun.h in STL did it, to save a string copy :p (it's deceptively simple too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5298 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-191-10/+10
* Turn irc::commasepstream into a base class, irc::sepstream, inherit two class...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5266 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-171-5/+5
* Move Spacify() into irc:: namespace as multiple modules use it now•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5200 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-101-0/+11
* I'll give you ##TOAST, :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5189 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-091-1/+6