Sha256: 6b8dda81d9242327a7f46cae55ddd22d79e0447864b8c2f07bfbbf9cb6ebdb40

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

#ifndef __downcase_h__
#define __dowmcase_h__
#include "inplace_processor.h"
#include <cctype>

namespace Preprocessing {
  namespace Text {
    
    class Downcase : public InplaceProcessor {
    public:
      static const uint32_t file_mark = 'down';
      uint32_t mark() { return file_mark; }
      
      char *process(char *start, char *end) {
        while(start != end) {
          *start = tolower(*start);
          start++;
        }
        return end;
      }
    };
    
  }
}

#endif

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thera-0.0.8 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.7 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.6 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.5 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.4 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.3 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.2 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h
thera-0.0.1 lib/quarry/src/preprocessing/text/inplace_processor/downcase.h