1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
11 #include <anna/http/functions.hpp>
12 #include <anna/http/internal/sccs.hpp>
16 void http::functions::initialize()
18 http::sccs::activate();
21 int http::functions::find(const void* _data, const int size, const char* searched)
24 const char* data = (const char*) _data;
25 int i, matchBegin, matchLen;
29 while((i + matchLen) < size) {
30 if(tolower(data [i + matchLen]) == tolower(searched [matchLen])) {
34 if(searched [++ matchLen] == 0) {