Namespace: OpenEdge.Core
Class
String
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object
Implements: Ccs.Common.Support.ILongcharHolder, OpenEdge.Core.ISupportEncoding

Copyright (c) 2013-2017 by Progress Software Corporation. All rights reserved.
File:String
Purpose:Primitive class for character/longchar variables
Author(s):pjudge
Created:Tue Aug 11 13:08:46 EDT 2009
Notes:* Named 'String' because of keyword/namespace conflicts with
ABL Primitive 'character'. There's no built-in class for this.
primitive value means that we don't have to distinguish between
primitives and types, which makes the code more readable.




Method Summary
Options Name Purpose
Append (longchar) /* Adds the input string to the end of the current string. No validation (for unknowns in particular) is done on either string value. @param longchar A value to append */
Append (String) /* Adds the input string to the end of the current string. No validation (for unknowns in particular) is done on either string value. @param OpenEdge.Core.String A value to append */
OpenEdge.Core.String Empty ()
LOGICAL Equals (Object)
LOGICAL IsNullOrEmpty ()
LOGICAL IsNullOrEmpty (longchar) /* Indicates whether a string is null or empty: empty having no non-whitespace characters @param longchar The value being checked @return logical TRUE if the string is null or empty */
LOGICAL IsQuoted (longchar) /* Indicates whether the string is quoted with either double (") or single (') quotes. The first AND last characters must be the same and must either the quote character @param longchar A string to check @return logical TRUE if the string is non-null and has matching leading and trailing quotes. */
LOGICAL IsQuoted (longchar, character) /* Indicates whether the string is quoted with the quote character , The first AND last characters must be the same and be the quote character @param longchar A string to check @param character The quote character @return logical TRUE if the string is non-null and has matching leading and trailing quotes. */
OpenEdge.Core.String Join (Array, character) /* Join: OE.Core.String */
LONGCHAR Join (character[], character) /* Join: ABL primitive */
OpenEdge.Core.String Join (String[], character)
Prepend (longchar) /* Adds the input string to the beginning of the current string. No validation (for unknowns in particular) is done on either string value. @param longchar A value to prepend */
Prepend (String) /* Adds the input string to the beginning of the current string. No validation (for unknowns in particular) is done on either string value. @param OpenEdge.Core.String A value to prepend */
OpenEdge.Core.Collections.Array Split ()
OpenEdge.Core.Collections.Array Split (character) /* Splits: OE.Core.String */
CHARACTER Split (longchar) /* Splits: ABL primitives */
CHARACTER Split (longchar, character)
OpenEdge.Core.Collections.Array Split (String)
OpenEdge.Core.Collections.Array Split (String, character)
CHARACTER ToString ()
Trim ()

Constructor Summary
Options Name Purpose
String () /* Default constructor */
String (character) /* Constructor @param longchar A string value */
String (longchar) /* Constructor @param longchar A string value */

Property Summary
Options Name Purpose
CHARACTER Encoding /* Content encoding (eg utf-8) of this string. Defaults to CPINTERNAL if not specified */
INT64 Size /** Returns the size of the contained string, in bytes */
LONGCHAR Value /** Contains the actual string value */


Method Detail
Top

Append (longchar)

/* Adds the input string to the end of the current string.
No validation (for unknowns in particular) is done on either
string value.
Parameters:
pcValue LONGCHAR
Top

Append (String)

/* Adds the input string to the end of the current string.
No validation (for unknowns in particular) is done on either
string value.
Parameters:
poValue OpenEdge.Core.String
Top

OpenEdge.Core.String Empty ()

Returns OpenEdge.Core.String
Top

LOGICAL Equals (Object)

Parameters:
p0 Progress.Lang.Object
Returns LOGICAL
Top

LOGICAL IsNullOrEmpty ()

Returns LOGICAL
Top

LOGICAL IsNullOrEmpty (longchar)

/* Indicates whether a string is null or empty: empty having no
non-whitespace characters
Parameters:
pcValue LONGCHAR
Returns LOGICAL
logical TRUE if the string is null or empty
Top

LOGICAL IsQuoted (longchar)

/* Indicates whether the string is quoted with either double (") or single (') quotes.
The first AND last characters must be the same and must either the quote character
Parameters:
pcValue LONGCHAR
Returns LOGICAL
logical TRUE if the string is non-null and has matching leading and trailing quotes.
Top

LOGICAL IsQuoted (longchar, character)

/* Indicates whether the string is quoted with the quote character ,
The first AND last characters must be the same and be the quote character
Parameters:
pcValue LONGCHAR
pcQuote CHARACTER
Returns LOGICAL
logical TRUE if the string is non-null and has matching leading and trailing quotes.
Top

OpenEdge.Core.String Join (Array, character)

/* Join: OE.Core.String
Parameters:
poValue OpenEdge.Core.Collections.Array
pcDelimiter CHARACTER
Returns OpenEdge.Core.String
Top

LONGCHAR Join (character[], character)

/* Join: ABL primitive
Parameters:
pcValue CHARACTER
pcDelimiter CHARACTER
Returns LONGCHAR
Top

OpenEdge.Core.String Join (String[], character)

Parameters:
poValue OpenEdge.Core.String
pcDelimiter CHARACTER
Returns OpenEdge.Core.String
Top

Prepend (longchar)

/* Adds the input string to the beginning of the current string.
No validation (for unknowns in particular) is done on either
string value.
Parameters:
pcValue LONGCHAR
Top

Prepend (String)

/* Adds the input string to the beginning of the current string.
No validation (for unknowns in particular) is done on either
string value.
Parameters:
poValue OpenEdge.Core.String
Top

OpenEdge.Core.Collections.Array Split ()

Returns OpenEdge.Core.Collections.Array
Top

OpenEdge.Core.Collections.Array Split (character)

/* Splits: OE.Core.String
Parameters:
pcDelimiter CHARACTER
Returns OpenEdge.Core.Collections.Array
Top

CHARACTER Split (longchar)

/* Splits: ABL primitives
Parameters:
pcValue LONGCHAR
Returns CHARACTER
Top

CHARACTER Split (longchar, character)

Parameters:
pcValue LONGCHAR
pcDelimiter CHARACTER
Returns CHARACTER
Top

OpenEdge.Core.Collections.Array Split (String)

Parameters:
poValue OpenEdge.Core.String
Returns OpenEdge.Core.Collections.Array
Top

OpenEdge.Core.Collections.Array Split (String, character)

Parameters:
poValue OpenEdge.Core.String
pcDelimiter CHARACTER
Returns OpenEdge.Core.Collections.Array
Top

CHARACTER ToString ()

Returns CHARACTER
Top

Trim ()



Constructor Detail
Top

String ()

/* Default constructor
Top

String (character)

/* Constructor
Parameters:
pcString CHARACTER
Top

String (longchar)

/* Constructor
Parameters:
pcString LONGCHAR


Property Detail
Top

CHARACTER Encoding

/* Content encoding (eg utf-8) of this string. Defaults to CPINTERNAL if not specified
Returns CHARACTER
Top

INT64 Size

Purpose: Returns the size of the contained string, in bytes
Returns INT64
Top

LONGCHAR Value

Purpose: Contains the actual string value
Returns LONGCHAR


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7