Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudbuzing committed Aug 13, 2018
1 parent c71176f commit eb5bd5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Prototypes/PacletInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"Prototypes`$UUIDStringPattern", "Prototypes`LayeredGeoGraphics",
"Prototypes`RenderOnlineNotebook","Prototypes`CreateNotebookRenderAPI",
"Prototypes`CaptureFromIPCamera","Prototypes`Prototype", "Prototypes`FilePartition", "Prototypes`FileJoin",
"Prototypes`FilePattern"},
"Prototypes`FilePattern", "Prototypes`StringFlip"},
Context -> {"Prototypes`"} }
}
]
2 changes: 2 additions & 0 deletions Prototypes/String.wl
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ $UUIDStringPattern =


CapitalizeSentences[string_] := StringReplace[string, Map[# -> Capitalize[#] &, TextSentences[string]]]

StringFlip[string_String, a_String <-> b_String] := StringReplace[string, {a -> b, b -> a}]
1 change: 1 addition & 0 deletions Prototypes/Usage.wl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ StringLast::usage = "StringLast[string] returns the last character of 'string'";
StringRest::usage = "StringRest[string] returns string with the first character removed";
StringMost::usage = "StringMost[string] returns string with the last character removed";
CapitalizeSentences::usage = "CapitalizeSentences[string] capitalizes sentences in the given 'string'";
StringFlip::usage = "StringFlip[string, a<->b] replaces 'a' with 'b' and 'b' with 'a' in 'string'";
$UUIDStringPattern::usage = "$UUIDStringPattern will StringMatchQ a valid UUID";
(* geographics *)
RandomGeoPosition::usage = "RandomGeoPosition[] picks a random geo position";
Expand Down

0 comments on commit eb5bd5c

Please sign in to comment.