Appends the label of the given opt group object to the given {@link AppendingStringBuffer}
object.

@param buffer
the buffer
@param optGroup
the opt group to append.
350754
private void appendOptGroupLabel(final AppendingStringBuffer buffer, final T optGroup)
	{
		buffer.append("\n<optgroup label='")
			.append(Strings.escapeMarkup(getOptGroupLabel(optGroup))).append("'>");
	}
1046832
public void setGroup( final CharSequence group) {
		if ( group != null) format.getHeader().createEntry( GROUP, group);
	}
1353045
public void append(final CharArrayBuffer b) {
        if (b == null) {
            return;
        }
        append(b.array,0, b.len);
    }
782588
private void appendOption(StringBuilder sb, Option option, boolean required) {
        if (!required) {
            sb.append(OPTIONAL_BRACKET_OPEN);
        }
        if (option.getName() != null) {
            sb.append(OPTION_PREFIX).append(option.getName());
        } else {
            sb.append(LONG_OPTION_PREFIX).append(option.getLongName());
        }
        // if the Option has a value and a non blank arg name
        if (option.hasValue() && (option.getValueName() == null || !option.getValueName().isEmpty())) {
            sb.append(option.isWithEqualSign() ? '=' : LONG_OPTION_SEPARATOR);
            sb.append(ARG_BRACKET_OPEN).append(option.getValueName() != null ? option.getValueName() : getArgName()).append(ARG_BRACKET_CLOSE);
        }
        if (!required) {
            sb.append(OPTIONAL_BRACKET_CLOSE);
        }
    }
1331686
public void removeGroup(String group) {

        if (m_fieldsByGroup.get(group) != null) {
            List<I_CmsFormField> fieldsToRemove = new ArrayList<I_CmsFormField>(m_fieldsByGroup.get(group));
            for (I_CmsFormField field : fieldsToRemove) {
                removeField(field);
            }
        }
        m_fieldsByGroup.removeAll(group);
    }
875180
private void addAttributes(PublisherRegistration publisherRegistration, String group) {
        // if group == null; group = "DEFAULT_GROUP"
        if (StringUtils.isNotEmpty(group)) {
            publisherRegistration.setGroup(group);
        }

    }
1149630
public static function OptionGroup( $label, $options, $selected = NULL )
	{
		$attributes	= array( 'label' => $label );
		$options	= self::Options( $options, $selected );
		return UI_HTML_Tag::create( "optgroup", $options, $attributes );
	}
442534
public void setJobGroup (final String jobGroup)
  {
    if (jobGroup != null && jobGroup.trim ().length () == 0)
      throw new IllegalArgumentException ("Group name cannot be null or empty.");

    if (jobGroup == null)
      m_sJobGroup = IScheduler.DEFAULT_GROUP;
    else
      m_sJobGroup = jobGroup;
  }
1061715
public void readGroup(final int fieldNumber,
                        final MessageLite.Builder builder,
                        final ExtensionRegistryLite extensionRegistry)
      throws IOException {
    if (recursionDepth >= recursionLimit) {
      throw InvalidProtocolBufferException.recursionLimitExceeded();
    }
    ++recursionDepth;
    builder.mergeFrom(this, extensionRegistry);
    checkLastTagWas(
      WireFormat.makeTag(fieldNumber, WireFormat.WIRETYPE_END_GROUP));
    --recursionDepth;
  }
399574
public void setAdGroupLabel(com.google.api.ads.adwords.axis.v201809.cm.AdGroupLabel adGroupLabel) {
        this.adGroupLabel = adGroupLabel;
    }
1132086
public static StringBuffer appendOpeningTag(StringBuffer buffer, String tag, Map<String, String> attributes)
	{
		StringBuffer _buffer = initStringBufferIfNecessary(buffer);
		Map<String, String> _attributes = (null != attributes) ? attributes : EMPTY_MAP;
		return doAppendOpeningTag(_buffer, tag, _attributes);
	}
1278997
protected void appendParameters(StringBuilder buffer,String parameters)
    {
        if((parameters!=null)&&(parameters.length()>0))
        {
            String updatedParameters=parameters;
            if(parameters.startsWith("?"))
            {
                updatedParameters=parameters.substring(1);
            }
            
            if(updatedParameters.length()>0)
            {
                int currentLength=buffer.length();
                if((currentLength>0)&&(buffer.charAt(currentLength-1)=='/'))
                {
                    int length=currentLength;
                    buffer.delete(length-1,length);
                }
                
                //add separator
                buffer.append("?");
    
                try
                {
                    String[] parameterPairs=updatedParameters.split("&");
                    int amount=parameterPairs.length;
                    String parameterPair=null;
                    String[] values=null;
                    boolean addedParameters=false;
                    for(int index=0;index<amount;index++)
                    {
                        //get next element
                        parameterPair=parameterPairs[index];
                        
                        //split to key/value
                        values=parameterPair.split("=");
                        if(values.length==2)
                        {
                            if(addedParameters)
                            {
                                buffer.append("&");
                            }
                            
                            buffer.append(URLEncoder.encode(values[0],"UTF-8"));
                            buffer.append("=");
                            buffer.append(URLEncoder.encode(values[1],"UTF-8"));
                            
                            //set flag
                            addedParameters=true;
                        }
                    }
                }
                catch(Exception exception)
                {
                    throw new FaxException("Unable to encode parameters.",exception);
                }
            }
        }
    }
989570
public function optgroup($label, $options)
    {
        return Optgroup::create()
            ->label($label)
            ->addChildren($options, function ($text, $value) {
                return Option::create()
                    ->value($value)
                    ->text($text)
                    ->selectedIf($value === $this->value);
            });

        return $this->addChild($optgroup);
    }
247034
public final <T> void addOption(Class<T> cls, String name, String description, String exclusiveGroup)
    {
        addOption(cls, name, description, exclusiveGroup, true);
    }
1028161
def add_general_optgroup(parser):
    

    g = parser.add_argument_group("General Options")

    g.add_argument("-q", "--quiet", dest="silent",
                   action="store_true", default=False)

    g.add_argument("-v", "--verbose", nargs=0, action=_opt_cb_verbose)

    g.add_argument("-o", "--output", dest="output", default=None)

    g.add_argument("-j", "--json", dest="json",
                   action="store_true", default=False)

    g.add_argument("--show-ignored", action="store_true", default=False)
    g.add_argument("--show-unchanged", action="store_true", default=False)

    g.add_argument("--ignore", action=_opt_cb_ignore,
                   help="comma-separated list of ignores")
963262
private void appendBreadCrumbEntry(StringBuffer buffer, String target, String label) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(target)) {
            buffer.append("<a href=\"#!").append(target).append(
                "\" title=\"" + CmsDomUtil.escapeXml(label) + "\"><span>").append(label).append("</span></a>");
        } else {
            buffer.append(
                "<span class=\"o-tools-breadcrumb-active\" title=\""
                    + CmsDomUtil.escapeXml(label)
                    + "\"><span>").append(label).append("</span></span>");
        }
    }
691057
public void appendToBuffer(StringBuilder buf) {
    Iterator<Polygon> iter = polygons.iterator();
    while(iter.hasNext()) {
      Polygon poly = iter.next();
      poly.appendToBuffer(buf);
      if(iter.hasNext()) {
        buf.append(" -- ");
      }
    }
  }