Skip to content

VariableRenaming::isPrefixOfName

Find if the given prefix is a prefix of the given name.

Synopsis

Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h>

static
bool
isPrefixOfName(
    VarName name,
    VarName prefix);

Description

This will return whether the given name has the given prefix inside it.

ex. a.b.c has prefix a.b, but not a.c

Return Value

Whether or not the prefix is in this name.

Parameters

Name

Description

name

The name to search.

prefix

The prefix to search for.

Created with MrDocs