Use Data.String
This commit is contained in:
parent
4fcaf4221f
commit
ee9713f230
@ -42,6 +42,12 @@ function! s:get_list() "{{{
|
|||||||
endif
|
endif
|
||||||
return s:List
|
return s:List
|
||||||
endfunction"}}}
|
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() "{{{
|
function! s:get_process() "{{{
|
||||||
if !exists('s:Process')
|
if !exists('s:Process')
|
||||||
let s:Process = neosnippet#util#get_vital().import('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)
|
return call(s:get_process().iconv, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! neosnippet#util#truncate(...) "{{{
|
function! neosnippet#util#truncate(...) "{{{
|
||||||
return call(s:get_prelude().truncate, a:000)
|
return call(s:get_string().truncate, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! neosnippet#util#strwidthpart(...) "{{{
|
function! neosnippet#util#strwidthpart(...) "{{{
|
||||||
return call(s:get_prelude().strwidthpart, a:000)
|
return call(s:get_string().strwidthpart, a:000)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! neosnippet#util#expand(path) "{{{
|
function! neosnippet#util#expand(path) "{{{
|
||||||
|
Loading…
Reference in New Issue
Block a user