~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/replace.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
RemoveĀ unusedĀ Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <drizzled/function/str/replace.h>
23
23
#include <drizzled/error.h>
24
24
#include <drizzled/session.h>
 
25
#include <drizzled/system_variables.h>
25
26
 
26
 
namespace drizzled
27
 
{
 
27
namespace drizzled {
28
28
 
29
29
/**
30
30
  Replace all occurences of string2 in string1 with string3.
43
43
  uint32_t from_length,to_length;
44
44
  bool alloced=0;
45
45
  const char *ptr,*end,*strend,*search,*search_end;
46
 
  register uint32_t l;
 
46
  uint32_t l;
47
47
  bool binary_cmp;
48
48
 
49
49
  null_value=0;
80
80
    {
81
81
        if (*ptr == *search)
82
82
        {
83
 
          register char *i,*j;
 
83
          char *i,*j;
84
84
          i=(char*) ptr+1; j=(char*) search+1;
85
85
          while (j != search_end)
86
86
            if (*i++ != *j++) goto skip;