Provide a fully qualified name (FQN), and the canonical version of this is returned.
181060
public static String processAliases(String in) {
		if (in == null) return null;
		String ret = ALIASES.get(in);
		return ret == null ? in : ret;
	}
1104908
public static function fqcn(string $name): string
    {
        $type = str_replace('[]', '', $name);

        if (class_exists($type) || interface_exists($type) && '\\' !== $type[0]) {
            return '\\' . $name;
        }

        return $name;
    }
398317
def load_name(self, load):
        '''
        
        '''
        if 'eauth' not in load:
            return ''
        fstr = '{0}.auth'.format(load['eauth'])
        if fstr not in self.auth:
            return ''
        try:
            pname_arg = salt.utils.args.arg_lookup(self.auth[fstr])['args'][0]
            return load[pname_arg]
        except IndexError:
            return ''
248938
def qualified_name(cls):
    
    module = cls.__module__
    if module is None or module == str.__class__.__module__:
        return cls.__name__
    return module + '.' + cls.__name__
249591
private boolean requiresFullyQualifiedName() {
        String currentPackage = PackageScope.get();
        if (currentPackage != null) {
            if (definition != null && definition.getPackageName() != null && definition.getFullyQualifiedName() != null) {
                String conflictingFQCN = getDefinition().getFullyQualifiedName().replace(definition.getPackageName(), currentPackage);
                if (!conflictingFQCN.equals(getFullyQualifiedName()) && DefinitionRepository.getRepository().getDefinition(conflictingFQCN) != null) {
                    return true;
                }
            }
        }

        Map<String, String> referenceMap = DefinitionRepository.getRepository().getReferenceMap();
        if (referenceMap != null && referenceMap.containsKey(definition.getName())) {
            String fqn = referenceMap.get(definition.getName());
            if (!getDefinition().getFullyQualifiedName().equals(fqn)) {
                return true;
            }
        }
        return false;
    }
1243456
def qualified_name_for(mod, name)
      mod_name = to_constant_name mod
      (%w(Object Kernel).include? mod_name) ? name.to_s : "#{mod_name}::#{name}"
    end
549452
def qualified_name(self):
        
        idxstr = '' if self.index is None else str(self.index)
        return "%s[%s]" % (self.qualified_package_name, idxstr)
483758
protected function filterFullQualifyClassName($fqcn, callable $callback)
    {
        $parts = explode('\\', $fqcn);

        foreach ($parts as &$part) {
            $part = call_user_func($callback, $part);
        }

        return implode('\\', $parts);
    }
92970
def _cls_fqn(self, cls):
        
        ns = self._namespace_stack[-1]
        if ns in ['__base__', None]:
            return cls.__name__
        else:
            return ns + '.' + cls.__name__
746615
def canonical
      canonical = ""
      canonical << method.to_s.upcase << "\n"
      canonical << uri.path << "\n"

      canonical_query.each_with_index do |(param,value), index|
      canonical << param << "=" << value
      canonical << "&" unless index == query.size - 1
      end

      canonical << "\n"
      canonical << canonical_headers.map{|h| h.join(":")}.join("\n")
      canonical << "\n\n"
      canonical << signed_headers.join(";")
      canonical << "\n"

      canonical << digest.hexdigest(body.to_s).downcase
      canonical
    end
983527
function contractQname($qname){
		// get element namespace
		//$this->xdebug("Contract $qname");
		if (strrpos($qname, ':')) {
			// get unqualified name
			$name = substr($qname, strrpos($qname, ':') + 1);
			// get ns
			$ns = substr($qname, 0, strrpos($qname, ':'));
			$p = $this->getPrefixFromNamespace($ns);
			if ($p) {
				return $p . ':' . $name;
			}
			return $qname;
		} else {
			return $qname;
		}
	}
363730
public static String camelCasePath(String fqn) {
    StringBuilder sb = new StringBuilder();
    for (String part : fqn.split(Pattern.quote(File.separator))) {
      sb.append(capitalize(part));
    }
    return sb.toString();
  }
662063
private static String canonicalBraceAsNecessary(Type type) {
		String str = type.toCanonicalString();
		if (needsBraces(type)) {
			return "(" + str + ")";
		} else {
			return str;
		}
	}
661018
def qual_name(self) -> QualName:
        """"""
        p, s, loc = self._key.partition(":")
        return (loc, p) if s else (p, self.namespace)
924712
private String resolveName(String localName, String qualifiedName) {

        if ((localName == null) || (localName.length() == 0)) {
            return qualifiedName;
        } else {
            return localName;
        }
    }
601707
def buildQName(ncname, prefix, memory, len):
    
    ret = libxml2mod.xmlBuildQName(ncname, prefix, memory, len)
    return ret
1036615
def qualified_name(obj):
    """"""
    try:
        module = obj.__module__
        qualname = obj.__qualname__
    except AttributeError:
        type_ = type(obj)
        module = type_.__module__
        qualname = type_.__qualname__

    return qualname if module in ('typing', 'builtins') else '{}.{}'.format(module, qualname)