search method

ClipFuncData? search(
  1. String name,
  2. bool updateCnt, [
  3. String? nameSpace
])

Implementation

ClipFuncData? search( String name, bool updateCnt, [String? nameSpace] ){
	int tmp = name.indexOf( ":" );
	if( tmp == 0 ){
		name = name.substring( 1 );
	} else if( (nameSpace != null) && (tmp < 0) ){
		name = "$nameSpace:$name";
	}
	ClipFuncData? cur = _top;
	while( cur != null ){
		if( name == cur._info!._name ){
			if( updateCnt ){
				cur._info!._cnt++;
			}
			return cur;
		}
		cur = cur._next;
	}
	return null;
}