use strict;
use warnings;
use base qw(Exporter);
use Hydra::Helper::AttributeSet;
our @EXPORT = qw(escapeString escapeAttributePath);
{
my ($s) = @_;
$s =~ s|\\|\\\\|g;
$s =~ s|\"|\\\"|g;
$s =~ s|\$|\\\$|g;
return "\"" . $s . "\"";
}
{
my ($s) = @_;
return join ".", map { escapeString($_) } Hydra::Helper::AttributeSet::splitPath($s);
}