Skip to content

A simple library to deal with delimited strings that _could_ contain the delimiter in the data itself.

License

Notifications You must be signed in to change notification settings

Guitarbum722/qualified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qualified

A simple library to deal with delimited strings that could contain the delimiter in the data itself.

Features

  • Split strings by a delimiter and escape the delimiter character if contained in a qualified text field.
    • ex. one,two,"three,four",five
fields := qualified.SplitWithQual("Ohhi, mark", ",", "")
fmt.Println(fields) // [Ohhi  mark]
  • Get a map that contains the length of each field
lens := qualified.FieldLengths("\"Ohhi, mark\",\"Hey bud\"", ",", "\"")
fmt.Println(lens) // map[0:12 1:9]

About

A simple library to deal with delimited strings that _could_ contain the delimiter in the data itself.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages