processing

package
v0.0.0-...-9044698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Copyright 2016 Home24 AG. All rights reserved. Proprietary license.

Index

Constants

This section is empty.

Variables

View Source
var Segments = &ProcessingSegments{}

Functions

This section is empty.

Types

type ProcessingSegments

type ProcessingSegments struct {
}

@todo write proper automata

func (*ProcessingSegments) CombineFuncs

func (p *ProcessingSegments) CombineFuncs(fns ...func(rune) bool) func(rune) bool

func (*ProcessingSegments) FieldsFunc

func (p *ProcessingSegments) FieldsFunc(s string, f func(rune) bool) []*Segment

func (*ProcessingSegments) IsDot

func (p *ProcessingSegments) IsDot(r rune) bool

func (*ProcessingSegments) IsEmoji

func (p *ProcessingSegments) IsEmoji(r rune) bool

func (*ProcessingSegments) IsNewLine

func (p *ProcessingSegments) IsNewLine(r rune) bool

func (*ProcessingSegments) IsPunctuation

func (p *ProcessingSegments) IsPunctuation(r rune) bool

func (*ProcessingSegments) Split

func (p *ProcessingSegments) Split(s string) []*Segment

type Segment

type Segment struct {
	Type SegmentType
	Text string
}

type SegmentType

type SegmentType int
const (
	SegmentText SegmentType = iota
	SegmentSeparator
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL