includes/org/apache/poi/hssf/record/SSTRecord.java
public int addString(UnicodeString string)
    {
        field_1_num_strings++;
        UnicodeString ucs = ( string == null ) ? EMPTY_STRING
                : string;
        int rval;
        int index = field_3_strings.getIndex(ucs);

        if ( index != -1 ) {
            rval = index;
        } else {
            // This is a new string -- we didn't see it among the
            // strings we've already collected
            rval = field_3_strings.size();
            field_2_num_unique_strings++;
            SSTDeserializer.addToStringTable( field_3_strings, ucs );
        }
        return rval;
    }
/**
     * Add a string.
     *
     * @param string string to be added
     *
     * @return the index of that string in the table
     */
Add a string.

@param string string to be added

@return the index of that string in the table
Add a string . @param string string to be added @return the index of that string in the table
public int addString(UnicodeString string)
    {
        field_1_num_strings++;
        UnicodeString ucs = ( string == null ) ? EMPTY_STRING
                : string;
        int rval;
        int index = field_3_strings.getIndex(ucs);
        if ( index != -1 ) {
            rval = index;
        } else {
            rval = field_3_strings.size();
            field_2_num_unique_strings++;
            SSTDeserializer.addToStringTable( field_3_strings, ucs );
        }
        return rval;
    }
public int addString ( UnicodeString string ) { field_1_num_strings ++ ; UnicodeString ucs = ( string == null ) ? EMPTY_STRING : string ; int rval ; int index = field_3_strings . getIndex ( ucs ) ; if ( index != - 1 ) { rval = index ; } else { rval = field_3_strings . size ( ) ; field_2_num_unique_strings ++ ; SSTDeserializer . addToStringTable ( field_3_strings , ucs ) ; } return rval ; }
Add a string.
Add a string .
// This is a new string -- we didn't see it among the
 // strings we've already collected
