[
https://issues.apache.org/jira/browse/METRON-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964696#comment-15964696
]
ASF GitHub Bot commented on METRON-830:
---------------------------------------
Github user mattf-horton commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/516#discussion_r110964577
--- Diff: metron-platform/metron-common/README.md ---
@@ -434,6 +466,14 @@ The `!=` operator is the negation of the above.
* dateTime - The datetime as a long representing the milliseconds
since unix epoch
* Returns: The current month (0-based).
+### `PREPEND_IF_MISSING`
+ * Description: Prepends the prefix to the start of the string if the
string does not already start with any of the prefixes.
+ * Input:
+ * string - The string to be prepended.
+ * prefix - The string prefix to prepend to the start of the string.
+ * prefixes - Optional - Additional string prefixes that are valid.
--- End diff --
ditto
> Adding StringFunctions to Stellar - chop, prependifmissing, appendifmissing
> and countmatches
> --------------------------------------------------------------------------------------------
>
> Key: METRON-830
> URL: https://issues.apache.org/jira/browse/METRON-830
> Project: Metron
> Issue Type: Bug
> Affects Versions: 0.3.1
> Reporter: Anand Subramanian
> Assignee: Anand Subramanian
> Fix For: Next + 1
>
>
> Enhance Stellar by adding the following apache common string functions.
> - chop -> Remove the last character from a String.
> - prependifmissing -> Prepends the prefix to the start of the string if the
> string does not already start with any of the prefixes.
> - appendifmissing -> Appends the suffix to the end of the string if the
> string does not already end with any of the suffixes.
> - countmatches -> Counts how many times the substring appears in the larger
> string.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)