Lines Matching refs:base

18 "			The completion list generated this way is only filtered by the completion base
91 function! phpcomplete#CompletePHP(findstart, base) " {{{ argument
105 let base = getline('.')[htmlbegin : cursor_col]
106 let b:php_menu = htmlcomplete#CompleteTags(0, base)
135 " a:base is very short - we need context
139 " chop of the "base" from the end of the current instruction
140 if a:base != ""
154 return phpcomplete#CompleteUse(a:base)
179 return phpcomplete#CompleteBuiltInClass(context, classname, a:base)
188 return phpcomplete#CompleteUserClass(context, a:base, sccontent, visibility)
192 return phpcomplete#CompleteUnknownClass(a:base, context)
195 return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
197 return phpcomplete#CompleteClassName(a:base, ['c', 'n'], current_namespace, imports)
198 elseif context =~? 'extends\s\+.\+$' && a:base == ''
202 return phpcomplete#CompleteClassName(a:base, kinds, current_namespace, imports)
205 return filter(['extends', 'implements'], 'stridx(v:val, a:base) == 0')
207 return phpcomplete#CompleteClassName(a:base, ['c'], current_namespace, imports)
210 if a:base =~ '^\$'
211 return phpcomplete#CompleteVariable(a:base)
213 return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
221 function! phpcomplete#CompleteUse(base) " {{{ argument
232 if a:base =~? '^\'
233 let base = substitute(a:base, '^\', '', '')
235 let base = a:base
238 let namespace_match_pattern = substitute(base, '\\', '\\\\', 'g')
239 let classname_match_pattern = matchstr(base, '[^\\]\+$')
274 if base !~ '\'
293 function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{ argument
304 if a:base =~? '^\'
319 if f_name =~? '^'.substitute(a:base, '\\', '\\\\', 'g')
334 if c_name != '' && c_name =~# '^'.substitute(a:base, '\\', '\\\\', 'g')
347 let base = substitute(a:base, '^\\', '', '')
348 …let [tag_match_pattern, namespace_for_tag] = phpcomplete#ExpandClassName(a:base, a:current_namespa…
365 let base_parts = split(a:base, '\')
379 let base_parts = split(a:base, '\')
394 let relative_name = strpart(full_name, stridx(full_name, a:base))
397 let relative_name = strpart(full_name, stridx(full_name, a:base))
472 let base = substitute(a:base, '^\', '', '')
473 if a:current_namespace == '\' || (a:base =~ '^\\' && a:base =~ '^\\[^\\]*$')
477 if classname =~? '^'.base
482 if interfacename =~? '^'.base
490 if constant =~# '^'.base
495 if leading_slash == '' " keywords should not be completed when base starts with '\'
498 if constant =~? '^'.a:base
505 if function_name =~? '^'.base
518 if imported_name =~? '^'.base
605 function! phpcomplete#CompleteUnknownClass(base, context) " {{{ argument
612 if a:base =~ '^\$'
656 let tags = phpcomplete#GetTaglist('^'.substitute(a:base, '^\$', '', ''))
679 if m =~ '\(^\|::\)'.a:base
706 function! phpcomplete#CompleteVariable(base) " {{{ argument
732 let tags = phpcomplete#GetTaglist('\C^'.substitute(a:base, '^\$', '', ''))
748 if m =~# '^\'.a:base
772 function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports) " {{{ argument
776 if a:base =~? '^\'
778 let base = substitute(a:base, '^\', '', '')
781 let base = a:base
803 if c_name != '' && c_name =~? '^'.base
809 …let [tag_match_pattern, namespace_for_class] = phpcomplete#ExpandClassName(a:base, a:current_names…
817 let base_parts = split(a:base, '\')
831 …" match base without the namespace part for namespaced base but not namespaced tags, for tagfiles …
832 …ce') && index(kinds, tag.kind) != -1 && stridx(tolower(tag.name), tolower(base[len(namespace_part)…
841 " without a namespace field are in the global namespace so if there were namespace in the base
850 let base_parts = split(base, '\')
853 … filter(keys(copy(g:php_builtin_classnames)), 'v:val =~? "^'.substitute(a:base, '\\', '', 'g').'"')
865 … filter(keys(copy(g:php_builtin_interfaces)), 'v:val =~? "^'.substitute(a:base, '\\', '', 'g').'"')
874 if imported_name =~? '^'.base && index(kinds, import.kind) != -1
948 function! phpcomplete#CompleteUserClass(context, base, sccontent, visibility) " {{{ argument
1056 if stridx(m, a:base) == 0
1103 function! phpcomplete#CompleteBuiltInClass(context, classname, base) " {{{ argument
1109 if stridx(method_name, '__') != 0 && (a:base == '' || method_name =~? '^'.a:base)
1115 if a:base == '' || property_name =~? '^'.a:base
1122 if a:base == '' || method_name =~? '^'.a:base
1128 if a:base == '' || property_name =~? '^'.a:base
1134 if a:base == '' || constant_name =~? '^'.a:base
1520 " the empty string represents the completion base (which happen to be an empty string)
2774base = M_E] | float','log10(':'float $arg | float','log1p(':'float $number | float','max(':'array …
2782 …':'string $types [, string $prefix] | bool','intval(':'mixed $var [, int $base = 10] | int','is_ar…