VirtualBox

Changeset 37665 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jun 28, 2011 12:32:13 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72521
Message:

Runtime/getopt: add new option flag to switch to case insensitive matching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/getopt.h

    r33911 r37665  
    44
    55/*
    6  * Copyright (C) 2007 Oracle Corporation
     6 * Copyright (C) 2007-2011 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9393/** The index value is attached to the argument - only valid for long arguments. */
    9494#define RTGETOPT_FLAG_INDEX                     RT_BIT(19)
     95/** Treat the long option as case insensitive. */
     96#define RTGETOPT_FLAG_ICASE                     RT_BIT(20)
    9597/** Mask of valid bits - for validation. */
    9698#define RTGETOPT_VALID_MASK                     (  RTGETOPT_REQ_MASK \
     
    98100                                                 | RTGETOPT_FLAG_OCT \
    99101                                                 | RTGETOPT_FLAG_DEC \
    100                                                  | RTGETOPT_FLAG_INDEX)
     102                                                 | RTGETOPT_FLAG_INDEX \
     103                                                 | RTGETOPT_FLAG_ICASE)
    101104/** @} */
    102105
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette