
    Develop a function for a social media content moderation system that calculates the total number of possible continuous text segments within a user's post that need to be screened for inappropriate content. The function should analyze the input post text and determine how many distinct substrings (excluding empty segments) need to be checked against the platform's content filtering database.
    

    
def number_of_substrings(str):
    """
    Develop a function for a social media content moderation system that calculates the total number of possible continuous text segments within a user's post that need to be screened for inappropriate content. The function should analyze the input post text and determine how many distinct substrings (excluding empty segments) need to be checked against the platform's content filtering database.
    

    """
def number_of_substrings(str):
    """
    Develop a function for a social media content moderation system that calculates the total number of possible continuous text segments within a user's post that need to be screened for inappropriate content. The function should analyze the input post text and determine how many distinct substrings (excluding empty segments) need to be checked against the platform's content filtering database.
    

    """
    str_len = len(str)
    return int(str_len * (str_len + 1) / 2)