Help Center›AfxNova
String Management
332 entries across 7 topics.
Topics
Array Macros
10 members
BSTRING Class
8 members
DWSTRING Class
11 members
DWStrList
14 members
Path and Url procedures
84 members
String Procedures
124 members
String Procedures
64 members
All entries
BSTRING 14
AppendAppends a string to the BSTRING.AttachAttaches a BSTR to the BSTRING class.ClearConstructorConstructorsInitialize the class with the specified value.CopyDetachDetaches the underlying BSTR from the BSTRING class and returns it as the result of the function.IsUtf8Operator *One * returns the address of the `BSTRING` buffer.<br> Two ** returns the address of the start of the string data.Operator CastReturns a pointer to the `BSTRING` buffer or the string data.<br>Casting is automatic. You don't have to call this operator.sptrUtf8Converts from UTF8 to Unicode and from Unicode to UTF8.vptrFrees the underlying BSTR and returns a pointer to a new empty allocated string.wcharReturns the string data as a new unicode string allocated with CoTaskMemAlloc.
DWSTRING 20
AddAppendBufferbstrReturns the contents of the `DWSTRING` as a `BSTR`.CapacityGets/sets the size of the internal buffer.ChrWReturns a wide-character string from a codepoint.ClearConstructorConstructorsInitialize the class with the specified value.GetBufferIsUtf8JScriptConverts the DWSTRING content into a safe JavaScript expression for use with WebView2 ExecuteScript.OEMConverts from Unicode to OEM code page.Operator *One * returns the address of the `DWSTRING` buffer.<br> Two ** returns the address of the start of the string data.Operator CastReturns a pointer to the `DWSTRING` buffer or the string data.<br>Casting is automatic. You don't have to call this operator.ResizeBufferScanForSurrogatessptrUtf8Converts from UTF8 to Unicode and from Unicode to UTF8.vptrReturns the address of the string buffer.wcharReturns the string data as a new unicode string allocated with **CoTaskMemAlloc**.
DWSTRING_LIST 4
DWStrList 7
Procedures 287
AddAppends an item to the list.AfxAcodeTranslates unicode bytes to ansi bytes. Parameters:AfxBase64DecodeAConverts the contents of a Base64 mime encoded string to an ascii string.AfxBase64DecodeWConverts the contents of a Base64 mime encoded string to an unicode string.AfxBase64EncodeAConverts the contents of an ascii string to Base64 mime encoding.AfxBase64EncodeWConverts the contents of an unicode string to Base64 mime encoding.AfxBase64EncodWeAAfxCryptBinaryToStringConverts an array of bytes into a formatted string.AfxCryptBinaryToStringAAfxCryptBinaryToStringWAfxCryptStringToBinaryConverts a formatted string into an array of bytes.AfxCryptStringToBinaryAAfxCryptStringToBinaryWAfxEnvironRetrieves the contents of the specified variable from the environment block of the calling process.AfxIsNumericRetuns TRUE if c is a number (0-9), a numeric sign (+-) or a decimal point (.). Works both with single characters and strings. Note: For strings that can contain floating decimal numbers with exponents, e.g. "1.2345678901234567e+029", use the CRegExp (regular expressions class):AfxIsValidUrlDetermines if a specified string is a valid URL.AfxPathAddBackSlashAdds a backslash to the end of a string to create the correct syntax for a path. If the source path already has a trailing backslash, no backslash will be added.AfxPathAddExtensionAdds a file name extension to a path string.AfxPathAllocCanonicalizeConverts a path string into a canonical form.AfxPathAllocCombineConverts a path string into a canonical form.AfxPathAppendAppends one path to the end of another.AfxPathBuildRootCreates a root path from a given drive number.AfxPathCanonicalizeRemoves elements of a file path according to special strings inserted into that path.AfxPathCombineConcatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements.AfxPathCommonPrefixCompares two paths to determine if they share a common prefix. A prefix is one of these types: "C:\\", ".", "..", "..\\".AfxPathCompactPathTruncates a file path to fit within a given pixel width by replacing path components with ellipses.AfxPathCompactPathExTruncates a path to fit within a certain number of characters by replacing path components with ellipses.AfxPathCreateFromUrlConverts a file URL to a Microsoft MS-DOS path.AfxPathFileExistsDetermines whether a path to a file system object such as a file or directory is valid.AfxPathFindExtensionSearches a path for an extension.AfxPathFindFileNameSearches a path for a file name.AfxPathFindNextComponentParses a path and returns the portion of that path that follows the first backslash.AfxPathFindOnPathSearches for a file.AfxPathFindSuffixArrayDetermines whether a given file name has one of a list of suffixes.AfxPathGetArgsFinds the command line arguments within a given path.AfxPathGetCharTypeDetermines the type of character in relation to a path.AfxPathGetDriveNumberSearches a path for a drive letter within the range of 'A' to 'Z' and returns the corresponding drive number.AfxPathIsContentTypeDetermines if a file's registered content type matches the specified content type.AfxPathIsDirectoryVerifies that a path is a valid directory.AfxPathIsDirectoryEmptyDetermines whether a specified path is an empty directory.AfxPathIsFileSpecSearches a path for any path-delimiting characters (for example, ':' or '\' ). If there are no path-delimiting characters present, the path is considered to be a File Spec path.AfxPathIsHTMLFileDetermines if a file is an HTML file. The determination is made based on the content type that is registered for the file's extension.AfxPathIsLFNFileSpecDetermines whether a file name is in long format.AfxPathIsNetworkPathDetermines whether a path string represents a network resource.AfxPathIsPrefixSearches a path to determine if it contains a valid prefix of the type passed by wszPrefix. A prefix is one of these types: "C:\\", ".", "..", "..\\".AfxPathIsRelativeSearches a path and determines if it is relative.AfxPathIsRootParses a path to determine if it is a directory root.AfxPathIsSameRootCompares two paths to determine if they have a common root component.AfxPathIsSystemFolderDetermines if an existing folder contains the attributes that make it a system folder. Alternately, this function indicates if certain attributes qualify a folder to be a system folder.AfxPathIsUNCDetermines if the string is a valid Universal Naming Convention (UNC) for a server and share path.AfxPathIsUNCServerDetermines if a string is a valid Universal Naming Convention (UNC) for a server path only.AfxPathIsUNCServerShareDetermines if a string is a valid Universal Naming Convention (UNC) share path, \\\\*server*\\*share*.AfxPathIsURLTests a given string to determine if it conforms to a valid URL format.AfxPathMakePrettyConverts a path to all lowercase characters to give the path a consistent appearance.AfxPathMakeSystemFolderGives an existing folder the proper attributes to become a system folder.AfxPathMatchSpecSearches a string using a Microsoft MS-DOS wild card match type.AfxPathMatchSpecExSearches a path to determine whether it contains a file of a specified file type extension.AfxPathParseIconLocationParses a file location string that contains a file location and icon index, and returns separate values.AfxPathQuoteSpacesSearches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.AfxPathRelativePathToCreates a relative path from one file or folder to another.AfxPathRemoveArgsRemoves any arguments from a given path.AfxPathRemoveBackslashRemoves the trailing backslash from a given path.AfxPathRemoveBackslashExRemoves the trailing backslash from a given path.AfxPathRemoveBlanksRemoves all leading and trailing spaces from a string.AfxPathRemoveExtensionRemoves the file name extension from a path, if one is present.AfxPathRemoveFileSpecRemoves the trailing file name and backslash from a path, if they are present.AfxPathRenameExtensionReplaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string.AfxPathSearchAndQualifyDetermines if a given path is correctly formatted and fully qualified.AfxPathSetDlgItemPathSets the text of a child control in a window or dialog box, using **AfxCompactPath** to ensure the path fits in the control.AfxPathSkipRootParses a path, ignoring the drive letter or Universal Naming Convention (UNC) server/share path elements.AfxPathStripPathRemoves the path portion of a fully qualified path and file.AfxPathStripToRootRemoves all parts of the path except for the root information.AfxPathUndecorateRemoves the decoration from a path string.AfxPathUnExpandEnvStringsReplaces certain folder names in a fully-qualified path with their associated environment string.AfxPathUnmakeSystemFolderRemoves the attributes from a folder that make it a system folder. This folder must actually exist in the file system.AfxPathUnquoteSpacesRemoves quotes from the beginning and end of a path.AfxSetEnvironAfxSortNumericArraySorts one-dimensional numeric arrays of any type.AfxSortStringArraySorts one-dimensional string arrays of any type.AfxStrClipLeftReturns a string with the specified number of characters removed from the left side of the string.AfxStrClipMidReturns a string with the specified number of characters removed starting at the specified position.AfxStrClipRightReturns a string with the specified number of characters removed from the right side of the string.AfxStrCSetReturns a string containing a centered string.AfxStrDeleteDeletes a specified number of characters from a string expression.AfxStrExtractExtracts characters from a string up to (but not including) the specified matching. Case sensitive.AfxStrExtractAnyExtracts characters from a string up to (but not including) any character in the matching string. Case sensitive.AfxStrExtractAnyIExtracts characters from a string up to (but not including) any character in the matching string. Case insensitive.AfxStrExtractIExtracts characters from a string up to (but not including) the specified matching string. Case insensitive.AfxStrFormatByteSizeConverts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size.AfxStrFormatKBSizeConverts a numeric value into a string that represents the number expressed as a size value in kilobytes.AfxStrFromTimeIntervalConverts a time interval, specified in milliseconds, to a string.AfxStrInsertInserts a string at a specified position within another string expression.AfxStrLCaseReturns a lowercased version of a string.AfxStrLSetReturns a string containing a left justified string.AfxStrParseReturns a delimited field from a string expression.AfxStrParseAnyReturns a delimited field from a string expression. Supports more than one character for the delimiter.AfxStrParseCountReturns the count of delimited fields from a string expression.AfxStrParseCountAnyReturns the count of delimited fields from a string expression. Supports more than one character for the delimiter.AfxStrPathNameParses a path to extract component parts.AfxStrRemainReturns the portion of a string following the first occurrence of a string. Case sensitive.AfxStrRemainAnyReturns the portion of a string following the first occurrence of a group of characters. Case sensitive.AfxStrRemainAnyIReturns the portion of a string following the first occurrence of a group of characters. Case insensitive.AfxStrRemainIReturns the portion of a string following the first occurrence of a string. Case insensitive.AfxStrRemoveReturns a new string with substrings removed. Case sensitive.AfxStrRemoveAnyReturns a new string with characters removed. Case sensitive.AfxStrRemoveAnyIReturns a new string with characters removed. Case insensitive.AfxStrRemoveIReturns a new string with substrings removed. Case insensitive.AfxStrRepeatReturns a string consisting of multiple copies of the specified string.AfxStrReplaceReplaces all the occurrences of a string with another string. Case sensitive.AfxStrReplaceAnyReplaces all the occurrences of a group of characters with another character. Case sensitive.AfxStrReplaceAnyIReplaces all the occurrences of a group of characters with another character. Case insensitive.AfxStrReplaceIReplaces all the occurrences of a string with another string. Case insensitive.AfxStrRetainReturns a string containing only the characters contained in a specified match string. Case sensitive.AfxStrRetainAnyReturns a string containing only the characters contained in a specified group of characters. Case sensitive.AfxStrRetainAnyIReturns a string containing only the characters contained in a specified group of characters. Case insensitive.AfxStrRetainIReturns a string containing only the characters contained in a specified match string. Case insensitive.AfxStrReverseReverses the contents of a string expression.AfxStrRSetReturns a string containing a right justified string.AfxStrShrinkShrinks a string to use a consistent single character delimiter.AfxStrSpnReturns the length of the initial portion of a string which consists only of characters that are part of a specified set of characters.AfxStrTallyCount the number of occurrences of a string within a string. Case sensitive.AfxStrTallyAnyCount the number of occurrences of a list of characters within a string. Case sensitive.AfxStrTallyAnyICount the number of occurrences of a list of characters within a string. Case insensitive.AfxStrTallyICount the number of occurrences of a string within a string. Case insensitive.AfxStrUCaseReturns an uppercased version of a string.AfxStrUnWrapRemoves paired characters to the beginning and end of a string.AfxStrVerifyDetermine whether each character of a string is present in another string. Case sensitive.AfxStrVerifyIDetermine whether each character of a string is present in another string. Case insensitive.AfxStrWrapAdds paired characters to the beginning and end of a string.AfxUcodeTranslates ansi bytes to unicode bytes. Parameters:AfxUrlApplySchemeDetermines a scheme for a specified URL string, and returns a string with an appropriate prefix.AfxUrlCanonicalizeConverts a URL string into canonical form.AfxUrlCombineWhen provided with a relative URL and its base, returns a URL in canonical form.AfxUrlCompareMakes a case-sensitive comparison of two URL strings.AfxUrlCreateFromPathConverts a Microsoft MS-DOS path to a canonicalized URL.AfxUrlEscapeConverts characters in a URL that might be altered during transport across the Internet ("unsafe" characters) into their corresponding escape sequences.AfxUrlEscapeSpacesConverts space characters into their corresponding escape sequence.AfxUrlFixupAttempts to correct a URL whose protocol identifier is incorrect. For example, htttp will be changed to http.AfxUrlGetHostNameAccepts a URL string and returns the host name.AfxUrlGetLocationRetrieves the location from a URL.AfxUrlGetPartAccepts a URL string and returns a specified part of that URL.AfxUrlGetPasswordAccepts a URL string and returns the password.AfxUrlGetPortAccepts a URL string and returns the port number.AfxUrlGetPortNumberAfxUrlGetQueryAccepts a URL string and returns the query portion.AfxUrlGetSchemeAfxUrlGetUserNameAccepts a URL string and returns the user name.AfxUrlHashHashes a URL string.AfxUrlIsTests whether or not a URL is a specified type.AfxUrlIsFileUrlTests a URL to determine if it is a file URL.AfxUrlIsNoHistoryReturns whether a URL is a URL that browsers typically do not include in navigation history.AfxUrlIsOpaqueReturns whether a URL is opaque.AfxUrlUnescapeConverts escape sequences back into ordinary characters.AfxUrlUnescapeInPlaceConverts escape sequences back into ordinary characters and overwrites the original string.AppendArrayToArrayAppends one array to another array.AppendElementToArrayAppends a new element to the array.ClearEmpties the entire list.CountReturns the number of items in the list.DEStrBase64EncodeADWStrAbbrevDayNameReturns the abbreviated native day name for the specified day (1 = Monday, etc.).DWStrAbbrevMonthNameReturns the abbreviated native month name for the specified month.DWStrAcodeTranslates Unicode chars to ansi bytes.DWStrBase64DecodeAConverts the contents of a Base64 mime encoded string to an ASCII string.DWStrBase64DecodeWConverts the contents of a Base64 mime encoded string to an Unicode string.DWStrBase64EncodeAConverts the contents of an ASCII string to Base64 mime encoding.DWStrBase64EncodeWConverts the contents of an Unicode string to Base64 mime encoding.DWStrBase64EncodWeADWStrChrWReturns a wide-character string from a codepoint.DWStrClipReturns a string with the specified number of characters removed from the left, right or mid section of the string.DWStrCodePointToSurrogatePairConverts a Unicode code point (above U+FFFF) back into its high and low surrogate pair.DWStrCountryNameReturns the full localized name of the country/region.DWStrCryptBinaryToStringConverts an array of bytes into a formatted string.DWStrCryptBinaryToStringADWStrCryptBinaryToStringWDWStrCryptStringToBinaryConverts a formatted string into an array of bytes.DWStrCryptStringToBinaryADWStrCryptStringToBinaryWDWStrCSetReturns a string containing a centered (padded) string.DWStrCSetAbsReturns a string containing a centered string within the space of another string.DWStrCurrencySymbolReturns the string used as the local monetary symbol.DWStrDateSeparatorReturns the character(s) used for the date separator.DWStrDayNameReturns the native day name for the specified day (1 = Monday, etc.).DWStrDecimalSeparatorReturns the character() used for the decimal separator, for example, "." in "3.14" or "," in "3,14".DWStrDeleteDeletes a specified number of characters from a string expression.DWStrDigitsGroupingReturns the sizes for each group of digits to the left of the decimal.DWStrDisplayNameReturns the primary language name included in a localized display name.DWStrEnglishCountryNameReturns the full English name of the country/region.DWStrEnglishCurrencyNameReturns the full English name of the currency associated with the locale.DWStrEnglishDisplayNameReturns the display name of the locale in English.DWStrEnglishLanguageNameReturns the full English name of the language from ISO Standard 639.DWStrEnvironRetrieves the contents of the specified variable from the environment block of the calling process.DwStrEnvironCountReturns the number of environment strings.DWStrEscapeEscapes any potential regex syntax characters in a string.DWstrExpandEnvironmentStringsExpands environment-variable strings and replaces them with the values defined for the current user.DWStrExtractExtracts characters from a string up to (but not including) the specified matching.DWStrFormatByteSizeConverts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size.DWStrFormatKBSizeConverts a numeric value into a string that represents the number expressed as a size value in kilobytes.DWStrFromTimeIntervalConverts a time interval, specified in milliseconds, to a string.DWStrGetEnvironmentStringsRetrieves the environment variables for the current process.DWStrGetUserDefaultLocaleNameRetrieves the user default locale name.DWStrHasSurrogatesChecks if the passed string has surrogates.DWStrInsertInserts a string at a specified position within another string expression.DWStrInternationalMonetarySymbolReturnsthe three characters of the international monetary symbol specified in ISO 4217, followed by the character separating this string from the amount.DWStrIsNumericReturns True if the passed string is numeric.DWStrISO3166CountryNameReturns the country/region name, based on ISO Standard 3166.DWStrISO3166CountryName2Returns the three-letter ISO region name (ISO 3166 three-letter code for the country/region).DWStrISO639LanguageNameReturns the abbreviated name of the language based entirely on the ISO Standard 639 values, in lowercase form.DWStrISO639LanguageName2Returnsthe three-letter ISO language name, in lowercase form (ISO 639-2 three-letter code for the language).DWStrIsValidSurrogatePairChecks whether a UTF-16 encoded string contains valid high-low surrogate pairs.DWStrJoinReturns a string consisting of all of the strings in an array, each separated by a delimiter.DWStrLanguageNameReturns the full localized name of the language.DWStrLCaseReturns a lowercased version of a string.DWStrListItemsSeparatorReturns the character(s) used to separate list items.DWStrLocaleNameReturns the locale name, a multi-part tag to uniquely identify the locale.DWStrLocalizedCountryNameReturns the full localized name of the country/region.DWStrLocalizedDisplayNameReturns the full localized name of the locale for the user interface language,DWStrLocalizedLanguageNameReturns the full localized primary name of the user interface language included in a localized display name.DWStrLongDateFormatStringReturns the long date formatting string for the locale.DWStrLSetReturns a string containing a left-justified (padded) string.DWStrLSetAbsLeft-aligns a string within the space of another string.DWStrMCaseReturns a mixed case version of its string argument.DWStrMonetaryDecimalSeparatorReturns the character(s) used as the monetary decimal separator.DWStrMonetaryGroupingReturns the sizes for each group of monetary digits to the left of the decimal.DWStrMonetaryThousandsSeparatorReturns the character(s) used as the monetary separator between groups of digits to the left of the decimal.DWStrMonthDayFormatStringReturns the format string for displaying only the month and the day.DWStrMonthNameReturns the native month name for the specified month.DWStrNanStringReturns the string value for "Not a number", for example, "Nan" for the English (United States) locale.DWStrNativeCountryNameReturns the native name of the country/region.DWStrNativeCurrencyNameReturns the native name of the currency associated with the locale, in the native language of the locale.DWStrNativeDigitsReturns the native equivalents of ASCII 0 through 9.DWStrNativeDisplayNameReturns the display name of the locale in its native language.DWStrNativeLanguageNameReturns the native name of the language.DWStrNegativeInfinityStringReturns the string value for "negative infinity".DWStrNegativeSignReturns the string value for the negative sign.DWStrOpenTypeLanguageTagReturns the OpenType language tag used to retrieve culturally appropriate typographic features from a font.DWStrParseReturns a delimited field from a string expression.DWStrParseCountReturns the count of delimited fields from a string expression.DWStrPathNameParses a path to extract component parts.DWStrPathScanSearches a path for a file name.DWStrPermilleSymbolReturns the symbol used to indicate the permille (U+2030) symbol, that is, ‰.DWStrPositiveInfinityStringReturns the string value for "positive infinity".DWStrPositiveSignReturns the string value for the positive sign.DWStrRemainReturns the portion of a string following the first occurrence of a string.DWStrRemoveReturns a new string with substrings removed.DWStrRemoveEnvironRemoves the specified environment variable from the current process.DWStrRepeatReturns a string consisting of multiple copies of the specified string.DWStrReplaceReplaces all the occurrences of a string with another string.DWStrRetainReturns a string containing only the characters contained in a specified match string.DWStrReverseReverses the contents of a string expression.DWStrRSetReturns a string containing a right justified string.DWStrRSetAbsRight-aligns a string within the space of another string.DWStrScanForSurrogatesScans a string to search for surrogates.DWStrScriptsListReturns a string representing a list of scripts, using the 4-character notation used in ISO 15924.DWStrSetEnvironSets the contents of the specified environment variable for the current process.DWStrShortDateFormatStringReturns the short date formatting string for the locale.DWStrShortestDayNameReturns the short native name of the specified day of the week.DWStrShortTimeFormatStringReturns the short time formatting string for the locale.DWStrShrinkShrinks a string to use a consistent single character delimiter.DWStrSortLocaleReturns the mame of the locale to use for sorting or casing behavior.DWStrSortNameReturns the full localized name of the sort for the specified locale identifier, dependent on the language of the shell.DWStrSplitSplits a string into tokens, which are sequences of contiguous characters separated by any of the characters that are part of delimiters.DWStrSpnReturns the index of the initial portion of a string which consists only of characters that are part of a specified set of characters.DWStrSurrogatePairToCodePointConverts a surrogate pair to a Unicode code point.DWStrTallyCount the number of occurrences of a string within a string.DWStrThousandsSeparatorReturns the character(s) that are used to separate groups of digits to the left of the decimal.DWStrTimeFormatStringReturns the time formatting strings for the locale.DWStrTimeSeparatorReturns the character(s) for the time separator.DWStrToOemTransltes Unicode to OEM byte characters.DWStrToUtf8Converts UTF-8 to Unicode.DWStrUCaseReturns an uppercased version of a string.DWStrUCodeTranslates ansi bytes to Unicode bytes.DWStrUnWrapRemoves paired characters to the beginning and end of a string.DWStrVerifyDetermine whether each character of a string is present in another string.DWStrWrapAdds paired characters to the beginning and end of a string.DWStrYearMonthFormatStringReturns the year-month formatting string for the locale.InsertInserts an item at the specific index.InsertArrayIntoArrayInserts an array into another array.InsertElementIntoArrayInserts a new element into an array.ItemRetrieves the item at the specified index.OemToDwstrTraslates a byte string of OEM characters to Unicode.RemoveRemoves the specified item from the list.RemoveElementFromArrayRemoves the specified element from an array.RemoveElementsFromArrayRemoves the specified elements from an array.RemoveFirstElementFromArrayRemoves the first element from an array.RemoveLastElementFromArrayRemoves the last element from an array.ReplaceReplaces the item at the specified index.Utf8ToDwstrConverts Unicode to UTF-8.