/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 */
package org.apache.tools.todo.util.regexp;

/**
 * Regular expression utilities class which handles flag operations
 *
 * @author <a href="mailto:mattinger@mindless.com">Matthew Inger</a>
 */
public class RegexpUtil extends Object
{
    public static final boolean hasFlag( int options, int flag )
    {
        return ( ( options & flag ) > 0 );
    }

    public static final int removeFlag( int options, int flag )
    {
        return ( options & ( 0xFFFFFFFF - flag ) );
    }
}
