HarrySun

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

0. create a string

  two ways to create a string

  1) string([]byte)

  2) str := "abc"

1. Kinds of operation

1) string converting to other and other converting to string

package strconv

  func FormatInt(i int64, base int) string

  func Itoa(i int) strin

 

  func ParseInt(s string, base int, bitSize int) (i int64, err error)

  func Atoi(s string) (i int, err error)

2) substring comparing and searching,  string reader

package strings

  reader.go

     strings.go    -func Index(s, sep string) int -> Rabin -Karp algorithm

1) create string (utf8, encode/decode)

 

 

2) string to other

3) string operation

(1) substing

(2)regex

2. other libs

1)

2)

 

 

posted on 2014-12-29 23:22  HarrySun  阅读(366)  评论(0编辑  收藏  举报