Click or drag to resize

ShadowFilteringUnpunctuateFilter Method

Converts a string into an ASCII alphanumeric string appropriate for storing or searching with a ShadowColumnIField that uses the Unpunctuate algorithm. All characters except ASCII 0-9, a-z, and A-Z are removed. This includes removal of all non-ASCII characters.

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string UnpunctuateFilter(
	string val
)

Parameters

val
Type: SystemString
The string to convert.

Return Value

Type: String
The transformed string appropriate for searching or storing.
Remarks
The shadow column for this algorithm may be seeded using the SeedUnpunctuate stored procedure and the shadow column values will be very similar to those that would have been generated by this code, but not necessarily identical. In particular, at this time the stored procedure will remove most ASCII punction (essentially all ASCII punctuation available on a standard U.S. keyboard), and will not remove non-ASCII Unicode characters.
See Also