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
)
Public Shared Function UnpunctuateFilter (
val As String
) As String
Parameters
- val
- Type: SystemString
The string to convert.
Return Value
Type:
StringThe 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