<commit_before>.. highlight:: objective-c

===========================
Value Transformer Reference
===========================

This is the reference documentation for all the `NSValueTransformers`_ that
Hydrant implements as conviences for you. Currently, these transformers are
intended to be used with :ref:`HYDMapReflectively`.

They are also publicly exposed if you need or prefer to use these classes
for other purposes.

.. _NSValueTransformers:  https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSFormatter_Class/Reference/Reference.html


.. _HYDDotNetDateFormatter:

HYDDotNetDateFormatter
======================

This is an `NSDateFormatter`_ subclass that supports parsing of microsoft AJAX
date formats which look like ``@"/Date(123456)/"``.

Since formatter sets some internal state from ``NSDateFormatter``, so changing
this formatter via properties may break its intended behavior.

.. _NSDateFormatter: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/Reference/Reference.html


.. _HYDURLFormatter:

HYDURLFormatter
===============

This formatter utilizes `NSURL`_ to generate URLs and adds some extra safety
by checking inputs before trying to construct an ``NSURL``.

It can optionally be constructed with a set of schemes to allow.

.. _NSURL: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html


.. _HYDUUIDFormatter:

HYDUUIDFormatter
================

This formatter utilizes `NSUUID`_ to generate UUIDs and adds some extra safety
by checking inputs before trying to construct an ``NSUUID``.

.. _NSUUID: https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSUUID_Class/Reference/Reference.html<commit_msg>Filled out some quick placeholders<commit_after>.. highlight:: objective-c

===========================
Value Transformer Reference
===========================

This is the reference documentation for all the `NSValueTransformers`_ that
Hydrant implements as conviences for you. Currently, these transformers are
intended to be used with :ref:`HYDMapReflectively`.

They are also publicly exposed if you need or prefer to use these classes
for other purposes.

.. _NSValueTransformers:  https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSFormatter_Class/Reference/Reference.html


.. _HYDBlockValueTransformer:

HYDBlockValueTransformer
========================

This value transformer is a simple abstraction to allow custom blocks instead of
having to implement a custom block value transformer.


.. _HYDIdentityValueTransformer:

HYDIdentityValueTransformer
===========================

This value transformer is a no-op, simply returning the value it has received.


.. _HYDReversedValueTransformer:

HYDReversedValueTransformer
===========================

This value transformer reverses another value transformer. The given value
transformer should be reverseable.


.. _HYDSnakeToCamelCaseValueTransformer:

HYDSnakeToCamelCaseValueTransformer
===================================

This value transformer converts snake case to camel case. You can optionally
specific if it is UpperCamelCase or lowerCamelCase.
{'fraction_non_alphanumeric': 0.14198844633627242, 'fraction_numerical': 0.0018242626938279112, 'mean_word_length': 5.985138004246284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2001025', 'n_tokens_mistral': 871, 'n_tokens_neox': 813, 'n_words': 282}