Use Data.String

This commit is contained in:
Aaron Jensen 2015-05-11 22:12:09 -07:00
parent 4fcaf4221f
commit ee9713f230

View File

@ -42,6 +42,12 @@ function! s:get_list() "{{{
endif
return s:List
endfunction"}}}
function! s:get_string() "{{{
if !exists('s:String')
let s:String = neosnippet#util#get_vital().import('Data.String')
endif
return s:String
endfunction"}}}
function! s:get_process() "{{{
if !exists('s:Process')
let s:Process = neosnippet#util#get_vital().import('Process')
@ -74,10 +80,10 @@ function! neosnippet#util#iconv(...) "{{{
return call(s:get_process().iconv, a:000)
endfunction"}}}
function! neosnippet#util#truncate(...) "{{{
return call(s:get_prelude().truncate, a:000)
return call(s:get_string().truncate, a:000)
endfunction"}}}
function! neosnippet#util#strwidthpart(...) "{{{
return call(s:get_prelude().strwidthpart, a:000)
return call(s:get_string().strwidthpart, a:000)
endfunction"}}}
function! neosnippet#util#expand(path) "{{{