aboutsummaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* 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
* We now have a test module that can dump someones certificate information: /ss...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5125 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-031-0/+18
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-301-4/+0
* Move trailing space stripping to only strip from non-last-item values (dont ask)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5049 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-281-5/+6
* Move lowermap[] into a pre-initialised const array in hashcomp.h,•••get rid of InspIRCd::MakeLowertab() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4951 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-20/+1
* Just to mess with om's head, remove helperfuncs.h from everywhere•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-1/+1
* Move whowas into InspIRCd•••Tidy up lowermap extern (for now, we cant do much but have this as extern) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4876 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-11/+25
* Make it more readable•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4853 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-2/+2
* Much faster hash<string> for case-insensitive hashing, combined copy and lowe...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4852 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-3/+8
* Move strlower into nspace namespace where hash<std::string> lives•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4850 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-0/+18
* Move the socket functions like insp_ntoa into their own namespace. They arent...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4828 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-0/+1
* Remove trailing spaces from input in irc::ircsepstream•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4759 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-061-0/+5
* The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-011-0/+7
* Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-011-3/+3
* Created new class irc::commasepstream.•••Will read comma seperated lists and works identically to irc::tokenstream It's re-entrant so we can run two of them together for JOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4412 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-161-0/+28
* const the std::string reference in tokenstream's constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4400 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-07-161-2/+1
* Improved this a lot•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4398 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-161-29/+3
* This should be faster, we read it like a stream now with GetToken until GetTo...•••The optimizations done by gcc means theres only one std::string constructor call per token, which is mmm yum. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4397 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-161-15/+40
* irc::tokenstream is a token parser which using std::string and std::vector bu...•••e.g.: :arse PRIVMSG #chan :foo bar baz becomes a[0] = ":arse", a[1] = "PRIVMSG", a[2] = "#chan", a[3] = "foo bar baz". *** SOMEONE *** needs to optimize this or at least verify its neatness (without making it total craq and unreadable). Feel free to mess with my code. Any optimizations you make, run them against the COMMENTED OUT TEST SUITE at the top of main() in src/inspircd.cpp and ensure ALL output is the same with no crashes. (note: if you comment out and build with the test suite, all inspircd will do is output test data and exit!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4396 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-161-0/+44
* Removed GCC2 checks as we havent supported gcc2 for years•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4394 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-151-8/+0
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE T...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-04-061-8/+8
* Tidyup: (unsigned) cast to more explicit (unsigned char)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3746 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-211-6/+6
* Changed to unsigned char to get rid of warnings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3598 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-2/+2
* lowertab -> lowermap•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3597 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-2/+2
* Improved strhashcomp with no allocations•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3596 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-8/+11
* AIEEE fucking overloaded operators•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-191-1/+1
* More tweaks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3262 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-191-2/+2
* Tweaks•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3261 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-191-4/+4
* Added + and == operators between std::string and irc::string.•••Its too late at night to wrestle with the = operator, this can wait for another time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3260 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-191-0/+20
* Add operators >> and << for irc::string and i/ostreams. m_cban utilises this•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3066 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-02-031-0/+14
* Improved inaddr_hashcomp•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3040 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-031-7/+1
* Updated copyrights in headers etc using perl inplace edit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-151-1/+1
* Started on -Wall - safe compile•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-301-7/+7