NDEVR
API Documentation
RegexFunctions.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/String.h>
4namespace NDEVR
5{
10 {
11 public:
16 NDEVR_BASE_API static const char* FileNameRegex();
21 NDEVR_BASE_API static const char* FolderRegex();
26 NDEVR_BASE_API static const char* FileRegex();
31 NDEVR_BASE_API static const char* UsernameRegex();
36 NDEVR_BASE_API static const char* EmailRegex();
42 NDEVR_BASE_API static String OptionalValues(const Buffer<StringView>& values);
48 NDEVR_BASE_API static String UnorderedValues(const Buffer<StringView>& values);
49 };
50}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Logic for creating regular expressions for certain situations.
static String UnorderedValues(const Buffer< StringView > &values)
Builds a regex pattern that matches all of the given values in any order.
static const char * FileRegex()
Gets a regex pattern for validating file paths.
static const char * FileNameRegex()
Gets a regex pattern for validating file names.
static const char * EmailRegex()
Gets a regex pattern for validating email addresses.
static const char * UsernameRegex()
Gets a regex pattern for validating usernames.
static const char * FolderRegex()
Gets a regex pattern for validating folder paths.
static String OptionalValues(const Buffer< StringView > &values)
Builds a regex pattern that matches any one of the given values optionally.
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.