Check if a classname is preceeded by a certain namespace tag like in "namespace:classname"

Share:

Description

This function checks if the supplied input string starts with a supplied namespace tag

Usage

1
isOfNamespace(classname, namespace = "bp")

Arguments

classname

A string containing the classname to check

namespace

A string giving the namespace to check for

Value

This function returns TRUE if the supplied classname string is preceeded with the supplied namespace string, and FALSE if not.

Author(s)

Frank Kramer

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.